phpBB API Documentation
Class

phpbb\template\twig\tokenparser\defineparser

class defineparser extends Twig_TokenParser

Methods

Twig_NodeInterface parse(Twig_Token $token)

Parses a token and returns a node.

decideBlockEnd(Twig_Token $token)

string getTag()

Gets the tag name associated with this token parser.

Details

at line 28
public Twig_NodeInterface parse(Twig_Token $token)

Parses a token and returns a node.

Parameters

Twig_Token $token A Twig_Token instance

Return Value

Twig_NodeInterface A Twig_NodeInterface instance

Exceptions

Twig_Error_Syntax
definenode

at line 62
public decideBlockEnd(Twig_Token $token)

Parameters

Twig_Token $token

at line 72
public string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name