21 $stream = $this->parser->getStream();
23 $parent = $this->parser->getExpressionParser()->parseExpression();
42 $module = $this->parser->parse(
$stream, array($this,
'decideBlockEnd'),
true);
45 if ($fakeParentToken === $parentToken) {
46 $module->setNode(
'parent', $parent);
49 $this->parser->embedTemplate(
$module);
58 return $token->
test(
'endembed');
67 class_alias(
'Twig_TokenParser_Embed',
'Twig\TokenParser\EmbedTokenParser',
false);
getTag()
Gets the tag name associated with this token parser.
parse(Twig_Token $token)
Parses a token and returns a node.
test($type, $values=null)
Tests the current token for a type and/or a value.
$stream
PHP stream implementation.
decideBlockEnd(Twig_Token $token)
if($modEnd===false) $module
Represents an embed node.