class event extends AbstractTokenParser

Properties

protected environment $environment

Methods

__construct(environment $environment)

Constructor

Node
parse(Token $token)

Parses a token and returns a node.

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 53
string getTag()

Gets the tag name associated with this token parser.

Return Value

string

The tag name