Craft 3 Class Reference

Class craft\web\twig\tokenparsers\HookTokenParser

Inheritance
craft\web\twig\tokenparsers\HookTokenParser ยป Twig_TokenParser
Implements
Twig_TokenParserInterface
Available since version
3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/web/twig/tokenparsers/HookTokenParser.php

Class HookTokenParser

Protected Properties
Property Type Description Defined By
$parser Twig_Parser Twig_TokenParser
Public Methods
Method Description Defined By
getTag() Gets the tag name associated with this token parser. craft\web\twig\tokenparsers\HookTokenParser
parse() Parses a token and returns a node. craft\web\twig\tokenparsers\HookTokenParser
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Method Details

getTag() public method #

Gets the tag name associated with this token parser.

public string getTag ( )
return string The tag name

parse() public method #

Parses a token and returns a node.

public Twig_Node parse ( Twig_Token $token )
$token
return Twig_Node A Twig_Node instance
throws Twig_Error_Syntax