IncludeResource_TokenParser

Type
Class
Namespace
Craft
Inherits
Craft\IncludeResource_TokenParser » Twig_TokenParser
Since
1.0

Class IncludeResource_TokenParser

See also http://craftcms.com

View source

Public Methods

MethodDescription
__construct()Constructor
decideBlockEnd()
getTag()Defines the tag name.
parse()Parses resource include tags.

__construct()

Constructor

View source

Arguments

Returns

Craft\IncludeResource_TokenParser

Signature

public Craft\IncludeResource_TokenParser __construct ( $tag, $allowTagPair = false )

decideBlockEnd()

View source

Arguments

  • $token

Signature

public void decideBlockEnd ( \Twig_Token $token )

getTag()

Defines the tag name.

View source

Returns

string

Signature

public string getTag ( )

parse()

Parses resource include tags.

View source

Arguments

  • $token (\Twig_Token)

Returns

Craft\IncludeResource_Node

Signature

public Craft\IncludeResource_Node parse ( \Twig_Token $token )