IncludeTreeNodeFinderVisitor implements IncludeTreeVisitorInterface
FinalYes
Find a single node in tree identified by node identifier.
This visitor is used in ext:tstemplate TypoScript modules and ext:backend page TSconfig backend modules to find single nodes, for instance when their source should be rendered.
This is a specific Backend implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Interfaces
- IncludeTreeVisitorInterface
- A visitor that can be attached to IncludeTreeTraverser's.
Methods
- getFoundNode() : IncludeInterface|null
- setNodeIdentifier() : mixed
- visit() : void
- Main visit method called for each node.
- visitBeforeChildren() : void
- Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).
Methods
getFoundNode()
public
getFoundNode() : IncludeInterface|null
Return values
IncludeInterface|nullsetNodeIdentifier()
public
setNodeIdentifier(string $nodeIdentifier) : mixed
Parameters
- $nodeIdentifier : string
visit()
Main visit method called for each node.
public
visit(IncludeInterface $include, int $currentDepth) : void
Parameters
- $include : IncludeInterface
- $currentDepth : int
visitBeforeChildren()
Gets called by the traversers *before* children are traversed. Useful for instance for the IncludeTreeConditionMatcherVisitor to evaluate a condition verdict *before* children are traversed (or not).
public
visitBeforeChildren(IncludeInterface $include, int $currentDepth) : void
Parameters
- $include : IncludeInterface
- $currentDepth : int