NavTokenParser

Type
Class
Namespace
craft\web\twig\tokenparsers
Inherits
craft\web\twig\tokenparsers\NavTokenParser » Twig_TokenParser
Implements
Twig_TokenParserInterface
Since
3.0

Recursively outputs a hierarchical navigation.

View source

Protected Properties

PropertyDescription
$parserTwig_Parser

Public Methods

MethodDescription
decideChildrenEnd()
decideChildrenFork()
decideNavEnd()
decideNavFork()
getTag()Gets the tag name associated with this token parser.
parse()Parses a token and returns a node.
setParser()Sets the parser associated with this token parser.

decideChildrenEnd()

View source

Arguments

Returns

boolean

Signature

public boolean decideChildrenEnd ( Twig_Token $token )

decideChildrenFork()

View source

Arguments

Returns

boolean

Signature

public boolean decideChildrenFork ( Twig_Token $token )

decideNavEnd()

View source

Arguments

Returns

boolean

Signature

public boolean decideNavEnd ( Twig_Token $token )

decideNavFork()

View source

Arguments

Returns

boolean

Signature

public boolean decideNavFork ( Twig_Token $token )

getTag()

Gets the tag name associated with this token parser.

View source

Returns

string – The tag name

Signature

public string getTag ( )

parse()

Parses a token and returns a node.

View source

Arguments

  • $token

Returns

Twig_Node – A Twig_Node instance

Throws

Signature

public Twig_Node parse ( Twig_Token $token )