1 | <?php |
||
27 | final class ButtonFormTwigExtension extends AbstractFormTwigExtension { |
||
28 | |||
29 | /** |
||
30 | * Service name. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.form.button"; |
||
35 | |||
36 | /** |
||
37 | * Constructor. |
||
38 | * |
||
39 | * @param RouterInterface $router The router. |
||
40 | * @param TranslatorInterface $translator The translator. |
||
41 | */ |
||
42 | public function __construct(RouterInterface $router, TranslatorInterface $translator) { |
||
45 | |||
46 | /** |
||
47 | * Displays a Bootstrap cancel form button. |
||
48 | * |
||
49 | * @param array $args The arguments. |
||
50 | * @return string Returns the Bootstrap cancel form button. |
||
51 | */ |
||
52 | public function bootstrapCancelFormButtonFunction(array $args = []) { |
||
67 | |||
68 | /** |
||
69 | * Displays a Bootstrap default form buttons. |
||
70 | * |
||
71 | * @param array $args The arguments. |
||
72 | * @return string Returns the Bootstrap default form buttons. |
||
73 | */ |
||
74 | public function bootstrapDefaultFormButtonsFunction(array $args = []) { |
||
79 | |||
80 | /** |
||
81 | * Displays a Bootstrap submit form button. |
||
82 | * |
||
83 | * @return string Returns the Bootstrap submit form button. |
||
84 | */ |
||
85 | public function bootstrapSubmitFormButtonFunction() { |
||
97 | |||
98 | /** |
||
99 | * Get the Twig functions. |
||
100 | * |
||
101 | * @return array Returns the Twig functions. |
||
102 | */ |
||
103 | public function getFunctions() { |
||
110 | |||
111 | } |
||
112 |