Hook_TokenParser

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

Class Hook_TokenParser

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
getTag() Defines the tag name.
parse() Parses {% hook %} tags.

# getTag()

Signature

public string getTag ( )

# parse()

Parses {% hook %} tags.

View source (opens new window)

Arguments

  • $token (\Twig_Token)

Returns

Craft\Hook_Node

Signature

public Craft\Hook_Node parse ( \Twig_Token $token )