Craft 3 Class Reference

Class craft\web\twig\tokenparsers\NavTokenParser

Inheritance
craft\web\twig\tokenparsers\NavTokenParser ยป Twig_TokenParser
Implements
Twig_TokenParserInterface
Available since version
3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/web/twig/tokenparsers/NavTokenParser.php

Recursively outputs a hierarchical navigation.

Protected Properties
Property Type Description Defined By
$parser Twig_Parser Twig_TokenParser
Public Methods
Method Description Defined By
decideChildrenEnd() craft\web\twig\tokenparsers\NavTokenParser
decideChildrenFork() craft\web\twig\tokenparsers\NavTokenParser
decideNavEnd() craft\web\twig\tokenparsers\NavTokenParser
decideNavFork() craft\web\twig\tokenparsers\NavTokenParser
getTag() Gets the tag name associated with this token parser. craft\web\twig\tokenparsers\NavTokenParser
parse() Parses a token and returns a node. craft\web\twig\tokenparsers\NavTokenParser
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Method Details

decideChildrenEnd() public method #

public boolean decideChildrenEnd ( Twig_Token $token )
$token Twig_Token

decideChildrenFork() public method #

public boolean decideChildrenFork ( Twig_Token $token )
$token Twig_Token

decideNavEnd() public method #

public boolean decideNavEnd ( Twig_Token $token )
$token Twig_Token

decideNavFork() public method #

public boolean decideNavFork ( Twig_Token $token )
$token Twig_Token

getTag() public method #

Gets the tag name associated with this token parser.

public string getTag ( )
return string The tag name

parse() public method #

Parses a token and returns a node.

public Twig_Node parse ( Twig_Token $token )
$token
return Twig_Node A Twig_Node instance
throws Twig_Error_Syntax