class
League
/
CommonMark
/
Extension
/
ExternalLink
/
ExternalLinkProcessor
final
ExternalLinkProcessor
Constants
public
APPLY_NONE
Default: ''
public
APPLY_ALL
Default: 'all'
public
APPLY_EXTERNAL
Default: 'external'
public
APPLY_INTERNAL
Default: 'internal'
Properties
private
$config
Default: null
Methods
public
__construct ( League\...\ConfigurationInterface $config ) : void
public
__invoke ( DocumentParsedEvent $e ) : void
private
markLinkAsExternal ( Link $link , bool $openInNewWindow , string $classes ) : void
private
applyRelAttribute ( Link $link , bool $isExternal ) : void
public
static
hostMatches ( string $host , $compareTo ) : void
Parameters
-
$compareTo
non-empty-string|list