parser->getExpressionParser()->parseExpression(); $stream = $this->parser->getStream(); $ignoreMissing = false; if ($stream->test(Twig_Token::NAME_TYPE, 'ignore')) { $stream->next(); $stream->expect(Twig_Token::NAME_TYPE, 'missing'); $ignoreMissing = true; } $stream->expect(Twig_Token::BLOCK_END_TYPE); return new phpbb_template_twig_node_includephp($expr, $this->parser->getEnvironment(), $ignoreMissing, $token->getLine(), $this->getTag()); } /** * Gets the tag name associated with this token parser. * * @return string The tag name */ public function getTag() { return 'INCLUDEPHP'; } }