CollectLinkTargetsTransformer
in package
implements
NodeTransformer
FinalYes
Table of Contents
Interfaces
Properties
- $anchorReducer : AnchorNormalizer
- $documentStack : SplStack<string|int, DocumentNode>
- $logger : LoggerInterface|null
Methods
- __construct() : mixed
- enterNode() : T
- getPriority() : int
- The higher the priority the earlier the NodeTransformer is executed.
- leaveNode() : T|null
- supports() : bool
- addLinkTargetToProject() : void
Properties
$anchorReducer read-only
private
AnchorNormalizer
$anchorReducer
$documentStack read-only
private
SplStack<string|int, DocumentNode>
$documentStack
$logger
private
LoggerInterface|null
$logger
= null
Methods
__construct()
public
__construct(AnchorNormalizer $anchorReducer[, LoggerInterface|null $logger = null ]) : mixed
Parameters
- $anchorReducer : AnchorNormalizer
- $logger : LoggerInterface|null = null
enterNode()
public
enterNode(Node $node, CompilerContextInterface $compilerContext) : T
Parameters
- $node : Node
- $compilerContext : CompilerContextInterface
Return values
TgetPriority()
The higher the priority the earlier the NodeTransformer is executed.
public
getPriority() : int
Return values
intleaveNode()
public
leaveNode(Node $node, CompilerContextInterface $compilerContext) : T|null
Parameters
- $node : Node
- $compilerContext : CompilerContextInterface
Return values
T|nullsupports()
public
supports(Node $node) : bool
Parameters
- $node : Node
Return values
booladdLinkTargetToProject()
private
addLinkTargetToProject(CompilerContextInterface $compilerContext, InternalTarget $internalTarget) : void
Parameters
- $compilerContext : CompilerContextInterface
- $internalTarget : InternalTarget