Expanded class hierarchy of TestTokenParser_☃
class TestTokenParser_☃ extends Twig_TokenParser {
public function parse(Twig_Token $token) {
$this->parser
->getStream()
->expect(Twig_Token::BLOCK_END_TYPE);
return new Twig_Node_Print(new Twig_Node_Expression_Constant('☃', -1), -1);
}
public function getTag() {
return '☃';
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestTokenParser_☃:: |
public | function |
Gets the tag name associated with this token parser. Overrides Twig_TokenParserInterface:: |
|
TestTokenParser_☃:: |
public | function |
Parses a token and returns a node. Overrides Twig_TokenParserInterface:: |
|
Twig_TokenParser:: |
protected | property | ||
Twig_TokenParser:: |
public | function |
Sets the parser associated with this token parser Overrides Twig_TokenParserInterface:: |