Twig API
Class

Twig_TokenParser_Embed

class Twig_TokenParser_Embed extends Twig_TokenParser_Include

Embeds a template.

Methods

Twig_NodeInterface parse(Twig_Token $token)

Parses a token and returns a node.

string getTag()

Gets the tag name associated with this token parser.

decideBlockEnd(Twig_Token $token)

Details

at line 24
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

at line 62
public string getTag()

Gets the tag name associated with this token parser.

Return Value

string The tag name

at line 52
public decideBlockEnd(Twig_Token $token)

Parameters

Twig_Token $token