| 1 | <?php |
||
| 19 | class Button extends Div implements RendererInterface |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Needed for button translation |
||
| 24 | */ |
||
| 25 | use TranslateMethods; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string The template file to use in the rendering |
||
| 29 | */ |
||
| 30 | public $template = 'form-elements/button.twig'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Render the HTML element in the provided context |
||
| 34 | * |
||
| 35 | * @param array $context |
||
| 36 | * |
||
| 37 | * @return string The HTML string output |
||
| 38 | */ |
||
| 39 | 8 | public function render($context = []) |
|
| 46 | } |
||
| 47 |