ExternalLinkProcessor
in package
Table of Contents
- APPLY_ALL = 'all'
- APPLY_EXTERNAL = 'external'
- APPLY_INTERNAL = 'internal'
- APPLY_NONE = ''
- $environment : EnvironmentInterface
- __construct() : mixed
- __invoke() : void
- applyRelAttribute() : void
- markLinkAsExternal() : void
Constants
APPLY_ALL
public
mixed
APPLY_ALL
= 'all'
APPLY_EXTERNAL
public
mixed
APPLY_EXTERNAL
= 'external'
APPLY_INTERNAL
public
mixed
APPLY_INTERNAL
= 'internal'
APPLY_NONE
public
mixed
APPLY_NONE
= ''
Properties
$environment
private
EnvironmentInterface
$environment
Methods
__construct()
public
__construct(EnvironmentInterface $environment) : mixed
Parameters
- $environment : EnvironmentInterface
Return values
mixed —__invoke()
public
__invoke(DocumentParsedEvent $e) : void
Parameters
- $e : DocumentParsedEvent
Return values
void —applyRelAttribute()
private
applyRelAttribute(Link $link, bool $isExternal) : void
Parameters
- $link : Link
- $isExternal : bool
Return values
void —markLinkAsExternal()
private
markLinkAsExternal(Link $link, bool $openInNewWindow, string $classes) : void
Parameters
- $link : Link
- $openInNewWindow : bool
- $classes : string