Namespace_TokenParser

Type
Class
Namespace
Craft
Inherits
Craft\Namespace_TokenParser » Twig_TokenParser
Since
1.3

Class Namespace_TokenParser

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
decideNamespaceEnd()
getTag() Defines the tag name.
parse() Parses {% namespace %}.

# decideNamespaceEnd()

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

boolean (opens new window)

Signature

public boolean decideNamespaceEnd ( \Twig_Token $token )

# getTag()

Signature

public string getTag ( )

# parse()

Parses {% namespace %}. ..{% endnamespace %} tags.

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

Craft\Namespace_Node

Signature

public Craft\Namespace_Node parse ( \Twig_Token $token )