ForTokenParser
extends AbstractTokenParser
in package
Loops over each item of a sequence.
-
{% for user in users %}
- {{ user.username|e }} {% endfor %}
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
$parser
protected
Parser
$parser
Methods
decideForEnd()
public
decideForEnd(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —decideForFork()
public
decideForFork(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —getTag()
public
getTag() : mixed
Return values
mixed —parse()
public
parse(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —setParser()
Sets the parser associated with this token parser.
public
setParser(Parser $parser) : mixed
Parameters
- $parser : Parser
Return values
mixed —checkLoopUsageBody()
private
checkLoopUsageBody(TokenStream $stream, Node $node) : mixed
Parameters
- $stream : TokenStream
- $node : Node
Return values
mixed —checkLoopUsageCondition()
private
checkLoopUsageCondition(TokenStream $stream, Node $node) : mixed
Parameters
- $stream : TokenStream
- $node : Node