CacheTokenParser

Type
Class
Namespace
craft\web\twig\tokenparsers
Inherits
craft\web\twig\tokenparsers\CacheTokenParser ยป Twig_TokenParser
Implements
Twig_TokenParserInterface
Since
3.0

Class CacheTokenParser

View source

Protected Properties

PropertyDescription
$parserTwig_Parser

Public Methods

MethodDescription
decideCacheEnd()
getTag()
parse()Parses a token and returns a node.
setParser()Sets the parser associated with this token parser.

decideCacheEnd()

View source

Arguments

Returns

boolean

Signature

public boolean decideCacheEnd ( Twig_Token $token )

getTag()

Signature

public string getTag ( )

parse()

Parses a token and returns a node.

View source

Arguments

  • $token

Returns

Twig_Node โ€“ A Twig_Node instance

Throws

Signature

public Twig_Node parse ( Twig_Token $token )