Documentation

FilterTokenParser extends AbstractTokenParser
in package

Filters a section of a template by applying filters.

{% filter upper %} This text becomes uppercase {% endfilter %}

Tags
deprecated

since Twig 2.9, to be removed in 3.0 (use the "apply" tag instead)

Table of Contents

$parser  : Parser
decideBlockEnd()  : 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