class
League
/
CommonMark
/
Extension
/
ExternalLink
/
ExternalLinkProcessor
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
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 mixed