1 | <?php |
||
2 | |||
3 | namespace Frontend\Core\Engine; |
||
4 | |||
5 | /** |
||
6 | * Twig node for writing out a compiled version of a closing form tag. |
||
7 | */ |
||
8 | class FormEndNode extends \Twig_Node |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
9 | { |
||
10 | /** |
||
11 | * @param int $lineNumber Line number in the template source file. |
||
12 | * @param string $tag |
||
13 | */ |
||
14 | public function __construct(int $lineNumber, string $tag) |
||
15 | { |
||
16 | parent::__construct([], [], $lineNumber, $tag); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param \Twig_Compiler $compiler |
||
21 | */ |
||
22 | public function compile(\Twig_Compiler $compiler): void |
||
23 | { |
||
24 | $compiler |
||
25 | ->addDebugInfo($this) |
||
26 | ->write('echo \'</form>\';'); |
||
27 | } |
||
28 | } |
||
29 |