Documentation

Twig_NodeVisitor_SafeAnalysis extends SafeAnalysisNodeVisitor
in package

Used to make node visitors compatible with Twig 1.x and 2.x.

Tags
deprecated

since Twig 2.7, use "Twig\NodeVisitor\SafeAnalysisNodeVisitor" instead

Table of Contents

$data  : mixed
$safeVars  : mixed
enterNode()  : Node
Called before child nodes are visited.
getPriority()  : mixed
getSafe()  : mixed
leaveNode()  : Node|null
Called after child nodes are visited.
setSafeVars()  : mixed
doEnterNode()  : Node
Called before child nodes are visited.
doLeaveNode()  : Node|null
Called after child nodes are visited.
intersectSafe()  : array<string|int, mixed>
setSafe()  : mixed

Properties

Methods

setSafeVars()

public setSafeVars(mixed $safeVars) : mixed
Parameters
$safeVars : mixed
Return values
mixed

intersectSafe()

private intersectSafe([array<string|int, mixed> $a = null ][, array<string|int, mixed> $b = null ]) : array<string|int, mixed>
Parameters
$a : array<string|int, mixed> = null
$b : array<string|int, mixed> = null
Return values
array<string|int, mixed>

setSafe()

private setSafe(Node $node, array<string|int, mixed> $safe) : mixed
Parameters
$node : Node
$safe : array<string|int, mixed>
Return values
mixed

Search results