System\Twig\MailPartialTokenParser

Extends:

  • Twig\TokenParser\AbstractTokenParser

Implements:

  • Twig\TokenParser\TokenParserInterface

Parser for the {% partial %} Twig tag.

{% partial "sidebar" %}

{% partial "sidebar" name='John' %}

{% partial "sidebar" name='John', year=2013 %}

Protected properties

There are no protected properties in the class.

Show inherited protected properties

Inherited protected properties

  • protected Parser $parser - defined in Twig\TokenParser\AbstractTokenParser.

Public methods

public void decidePartialEnd($token)
Parameters
  • $token

public string getTag()

Gets the tag name associated with this token parser.

public TwigNode parse(TwigToken $token)

Parses a token and returns a node.

Parameters
  • TwigToken $token - A TwigToken instance

Show inherited public methods

Inherited public methods

  • public void setParser($parser) - defined in Twig\TokenParser\AbstractTokenParser.