Documentation

Twig_TokenParser_For extends ForTokenParser
in package

Loops over each item of a sequence.

Tags
deprecated

since Twig 2.7, use "Twig\TokenParser\ForTokenParser" instead

Table of Contents

$parser  : Parser
decideForEnd()  : mixed
decideForFork()  : mixed
getTag()  : mixed
parse()  : mixed
setParser()  : mixed
Sets the parser associated with this token parser.
checkLoopUsageBody()  : mixed
checkLoopUsageCondition()  : mixed

Properties

Methods

setParser()

Sets the parser associated with this token parser.

public setParser(Parser $parser) : mixed
Parameters
$parser : Parser
Return values
mixed

Search results