Nav_TokenParser

Type
Class
Namespace
Craft
Inherits
Craft\Nav_TokenParser ยป Twig_TokenParser
Since
1.2

Recursively outputs a hierarchical navigation.

See also http://craftcms.com

View source (opens new window)

# Public Methods

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

# decideChildrenEnd()

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

boolean (opens new window)

Signature

public boolean decideChildrenEnd ( \Twig_Token $token )

# decideChildrenFork()

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

boolean (opens new window)

Signature

public boolean decideChildrenFork ( \Twig_Token $token )

# decideNavEnd()

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

boolean (opens new window)

Signature

public boolean decideNavEnd ( \Twig_Token $token )

# decideNavFork()

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

boolean (opens new window)

Signature

public boolean decideNavFork ( \Twig_Token $token )

# getTag()

Gets the tag name associated with this token parser.

View source (opens new window)

Returns

string (opens new window) โ€“ The tag name

Signature

public string getTag ( )

# parse()

Parses a token and returns a node.

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

\Twig_NodeInterface

Signature

public \Twig_NodeInterface parse ( \Twig_Token $token )