$nodes
$nodes :
Checks if a variable is the exact same value as a constant.
{% if post.status is constant('Post::PUBLISHED') %} the status attribute is exactly the same as Post::PUBLISHED {% endif %}
compile(\Twig_Compiler $compiler)
\Twig_Compiler | $compiler |
__construct(array $nodes = array(), array $attributes = array(), integer $lineno, string $tag = null)
Constructor.
The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']).
array | $nodes | An array of named nodes |
array | $attributes | An array of attributes (should not be nodes) |
integer | $lineno | The line number |
string | $tag | The tag name associated with the Node |
getNode( $name) : \Twig_Node
$name |
compileCallable(\Twig_Compiler $compiler)
\Twig_Compiler | $compiler |
compileArguments(\Twig_Compiler $compiler, $isArray = false)
\Twig_Compiler | $compiler | |
$isArray |