DefaultTokenParser
        
        Parser for the {% default %} Twig tag.
    
    
{% default %} Twig tag. class Cms\Twig\DefaultTokenParser
extends Twig\TokenParser\AbstractTokenParser{% put head %} {% default %} {% endput %}
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) : Twig\Node\Node
Parses a token and returns a node.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $token | Twig\Token | Twig\Token A TwigToken instance | 
Returns
            Twig\Node\Node
                A Twig\Node\Node instance
    Copyright © 2025 Winter CMS