1 | <?php |
||
23 | final class ButtonComponentTwigExtension extends AbstractComponentTwigExtension { |
||
24 | |||
25 | /** |
||
26 | * Service name. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.component.button"; |
||
31 | |||
32 | /** |
||
33 | * Displays a Bootstrap button "Danger". |
||
34 | * |
||
35 | * @param array $args The arguments. |
||
36 | * @return string Returns the Bootstrap button "Danger". |
||
37 | */ |
||
38 | public function bootstrapButtonDangerFunction(array $args = []) { |
||
41 | |||
42 | /** |
||
43 | * Displays a Bootstrap button "Default". |
||
44 | * |
||
45 | * @param array $args The arguments. |
||
46 | * @return string Returns the Bootstrap button "Default". |
||
47 | */ |
||
48 | public function bootstrapButtonDefaultFunction(array $args = []) { |
||
51 | |||
52 | /** |
||
53 | * Displays a Bootstrap button "Info". |
||
54 | * |
||
55 | * @param array $args The arguments. |
||
56 | * @return string Returns the Bootstrap button "Info". |
||
57 | */ |
||
58 | public function bootstrapButtonInfoFunction(array $args = []) { |
||
61 | |||
62 | /** |
||
63 | * Displays a Bootstrap button "Primary". |
||
64 | * |
||
65 | * @param array $args The arguments. |
||
66 | * @return string Returns the Bootstrap button "Primary". |
||
67 | */ |
||
68 | public function bootstrapButtonPrimaryFunction(array $args = []) { |
||
71 | |||
72 | /** |
||
73 | * Displays a Bootstrap button "Success". |
||
74 | * |
||
75 | * @param array $args The arguments. |
||
76 | * @return string Returns the Bootstrap button "Success". |
||
77 | */ |
||
78 | public function bootstrapButtonSuccessFunction(array $args = []) { |
||
81 | |||
82 | /** |
||
83 | * Displays a Bootstrap button "Warning". |
||
84 | * |
||
85 | * @param array $args The arguments. |
||
86 | * @return string Returns the Bootstrap button "Warning". |
||
87 | */ |
||
88 | public function bootstrapButtonWarningFunction(array $args = []) { |
||
91 | |||
92 | /** |
||
93 | * Get the Twig functions. |
||
94 | * |
||
95 | * @return array Returns the Twig functions. |
||
96 | */ |
||
97 | public function getFunctions() { |
||
107 | |||
108 | } |
||
109 |