Class craft\web\twig\tokenparsers\CacheTokenParser
- Inheritance
- craft\web\twig\tokenparsers\CacheTokenParser ยป Twig_TokenParser
- Implements
- Twig_TokenParserInterface
- Available since version
- 3.0
- Source Code
- https://github.com/craftcms/cms/blob/master/src/web/twig/tokenparsers/CacheTokenParser.php
Class CacheTokenParser
Property | Type | Description | Defined By |
---|---|---|---|
$parser |
Twig_Parser | Twig_TokenParser |
Method | Description | Defined By |
---|---|---|
decideCacheEnd() |
craft\web\twig\tokenparsers\CacheTokenParser | |
getTag() |
craft\web\twig\tokenparsers\CacheTokenParser | |
parse() |
Parses a token and returns a node. | craft\web\twig\tokenparsers\CacheTokenParser |
setParser() |
Sets the parser associated with this token parser. | Twig_TokenParser |
Method Details
decideCacheEnd()
public method
#
public boolean decideCacheEnd ( Twig_Token $token )
$token |
Twig_Token |
getTag()
public method
#
public string getTag ( )
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 |