SandboxNodeVisitor
extends AbstractNodeVisitor
in package
Used to make node visitors compatible with Twig 1.x and 2.x.
Tags
Table of Contents
- $filters : mixed
- $functions : mixed
- $inAModule : mixed
- $needsToStringWrap : mixed
- $tags : mixed
- enterNode() : Node
- Called before child nodes are visited.
- getPriority() : mixed
- leaveNode() : Node|null
- Called after child nodes are visited.
- doEnterNode() : Node
- Called before child nodes are visited.
- doLeaveNode() : Node|null
- Called after child nodes are visited.
- wrapArrayNode() : mixed
- wrapNode() : mixed
Properties
$filters
private
mixed
$filters
$functions
private
mixed
$functions
$inAModule
private
mixed
$inAModule
= false
$needsToStringWrap
private
mixed
$needsToStringWrap
= false
$tags
private
mixed
$tags
Methods
enterNode()
Called before child nodes are visited.
public
final enterNode(Node $node, Environment $env) : Node
Parameters
- $node : Node
- $env : Environment
Return values
Node —The modified node
getPriority()
public
getPriority() : mixed
Return values
mixed —leaveNode()
Called after child nodes are visited.
public
final leaveNode(Node $node, Environment $env) : Node|null
Parameters
- $node : Node
- $env : Environment
Return values
Node|null —The modified node or null if the node must be removed
doEnterNode()
Called before child nodes are visited.
protected
doEnterNode(Node $node, Environment $env) : Node
Parameters
- $node : Node
- $env : Environment
Return values
Node —The modified node
doLeaveNode()
Called after child nodes are visited.
protected
doLeaveNode(Node $node, Environment $env) : Node|null
Parameters
- $node : Node
- $env : Environment
Return values
Node|null —The modified node or null if the node must be removed
wrapArrayNode()
private
wrapArrayNode(Node $node, string $name) : mixed
Parameters
- $node : Node
- $name : string
Return values
mixed —wrapNode()
private
wrapNode(Node $node, string $name) : mixed
Parameters
- $node : Node
- $name : string