PartialTokenParser
Parser for the {% partial %}
Twig tag.
{% partial %}
Twig tag. class Cms\Twig\PartialTokenParser
extends Twig\TokenParser\AbstractTokenParser
{% partial "sidebar" %}
{% partial "sidebar" name='John' %}
{% partial "sidebar" name='John', year=2013 %}
Extends
Class | Description |
---|---|
Twig\TokenParser\AbstractTokenParser
|
Methods
public getTag () : string
Gets the tag name associated with this token parser.
Returns
string
The tag name
public parse (Twig\Token $token) : TwigNode
Parses a token and returns a node.
Parameters
Property | Type | Description |
---|---|---|
$token | Twig\Token |
Twig\Token
A TwigToken instance |
Returns
TwigNode
A TwigNode instance
Copyright © 2024 Winter CMS