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

Public Methods

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

decideNamespaceEnd()

View source

Arguments

  • $token (\Twig_Token)

Returns

boolean

Signature

public boolean decideNamespaceEnd ( \Twig_Token $token )

getTag()

Defines the tag name.

View source

Returns

string

Signature

public string getTag ( )

parse()

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

View source

Arguments

  • $token (\Twig_Token)

Returns

Craft\Namespace_Node

Signature

public Craft\Namespace_Node parse ( \Twig_Token $token )