1 | <?php |
||
13 | class TokenParser extends \Twig_TokenParser |
||
14 | { |
||
15 | private $tagName; |
||
16 | |||
17 | 6 | public function __construct($tagName) |
|
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function parse(Twig_Token $token) |
||
35 | |||
36 | /** |
||
37 | * Decide if current token marks end of our markup block. |
||
38 | * |
||
39 | * @param Twig_Token $token |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function decideEndTag(\Twig_Token $token) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 6 | public function getTag() |
|
55 | } |
||
56 |