System\Twig\MailPartialTokenParser

Overview

Parser for the {% partial %} Twig tag.

{% partial "sidebar" %}

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

{% partial "sidebar" name='John' year=2013 %}
Extends
  • Twig\TokenParser\AbstractTokenParser
Implements
  • Twig\TokenParser\TokenParserInterface

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

  • $parser - (defined in Twig\TokenParser\AbstractTokenParser)

Public Methods

public decidePartialEnd()

public decidePartialEnd($token): void

public getTag()

public getTag(): void

getTag name associated with this token parser

public parse()

public parse(TwigToken $token): TwigNode 

Parses a token and returns a node.

Show inherited public methods

Inherited Public Methods

  • setParser() - (defined in Twig\TokenParser\AbstractTokenParser)