Documentation

Twig_NodeVisitor_Escaper extends EscaperNodeVisitor
in package

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

Tags
deprecated

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

Table of Contents

$blocks  : mixed
$defaultStrategy  : mixed
$safeAnalysis  : mixed
$safeVars  : mixed
$statusStack  : mixed
$traverser  : mixed
__construct()  : 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.
escapeInlinePrintNode()  : mixed
escapePrintNode()  : mixed
getEscaperFilter()  : FilterExpression
isSafeFor()  : mixed
needEscaping()  : mixed
preEscapeFilterNode()  : mixed
shouldUnwrapConditional()  : mixed
unwrapConditional()  : mixed

Properties

Methods

escapeInlinePrintNode()

private escapeInlinePrintNode(InlinePrint $node, Environment $env, mixed $type) : mixed
Parameters
$node : InlinePrint
$env : Environment
$type : mixed
Return values
mixed

isSafeFor()

private isSafeFor(mixed $type, Node $expression, mixed $env) : mixed
Parameters
$type : mixed
$expression : Node
$env : mixed
Return values
mixed

Search results