class php extends AbstractTokenParser

Properties

protected environment $environment

Methods

__construct(environment $environment)

Constructor

Node
parse(Token $token)

Parses a token and returns a node.

decideEnd(Token $token)

No description

string
getTag()

Gets the tag name associated with this token parser.

Details

at line 26
__construct(environment $environment)

Constructor

Parameters

environment $environment

at line 38
Node parse(Token $token)

Parses a token and returns a node.

Parameters

Token $token

A Twig\Token instance

Return Value

Node

A Twig\Node instance

at line 51
decideEnd(Token $token)

No description

Parameters

Token $token

at line 61
string getTag()

Gets the tag name associated with this token parser.

Return Value

string

The tag name