32 $name = $this->parser->getVarName();
35 $filter = $this->parser->getExpressionParser()->parseFilterExpressionRaw($ref, $this->
getTag());
38 $body = $this->parser->subparse(array($this,
'decideBlockEnd'),
true);
42 $this->parser->setBlock($name, $block);
49 return $token->
test(
'endfilter');
Base class for all token parsers.
Filters a section of a template by applying filters.
parse(Twig_Token $token)
Parses a token and returns a node.
decideBlockEnd(Twig_Token $token)
getTag()
Gets the tag name associated with this token parser.
test($type, $values=null)
Tests the current token for a type and/or a value.
Represents a block call node.
Represents a node that outputs an expression.