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

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.

decideChildrenEnd()

View source

Arguments

  • $token (\Twig_Token)

Returns

boolean

Signature

public boolean decideChildrenEnd ( \Twig_Token $token )

decideChildrenFork()

View source

Arguments

  • $token (\Twig_Token)

Returns

boolean

Signature

public boolean decideChildrenFork ( \Twig_Token $token )

decideNavEnd()

View source

Arguments

  • $token (\Twig_Token)

Returns

boolean

Signature

public boolean decideNavEnd ( \Twig_Token $token )

decideNavFork()

View source

Arguments

  • $token (\Twig_Token)

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 (\Twig_Token)

Returns

\Twig_NodeInterface

Signature

public \Twig_NodeInterface parse ( \Twig_Token $token )