Documentation

IfTokenParser extends AbstractTokenParser
in package

Tests a condition.

{% if users %}

    {% for user in users %}
  • {{ user.username|e }}
  • {% endfor %}
{% endif %}

Table of Contents

$parser  : Parser
decideIfEnd()  : mixed
decideIfFork()  : mixed
getTag()  : mixed
parse()  : mixed
setParser()  : mixed
Sets the parser associated with this token parser.

Properties

Methods

setParser()

Sets the parser associated with this token parser.

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

Search results