1 | <?php |
||
24 | final class AlertComponentTwigExtension extends AbstractComponentTwigExtension { |
||
25 | |||
26 | /** |
||
27 | * Service name. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.component.alert"; |
||
32 | |||
33 | /** |
||
34 | * Displays a Bootstrap alert "Danger". |
||
35 | * |
||
36 | * @param array $args The arguments. |
||
37 | * @return string Returns the Bootstrap alert "Danger". |
||
38 | */ |
||
39 | public function bootstrapAlertDangerFunction(array $args = []) { |
||
42 | |||
43 | /** |
||
44 | * Displays a Bootstrap alert "Info". |
||
45 | * |
||
46 | * @param array $args The arguments. |
||
47 | * @return string Returns the Bootstrap alert "Info". |
||
48 | */ |
||
49 | public function bootstrapAlertInfoFunction(array $args = []) { |
||
52 | |||
53 | /** |
||
54 | * Displays a Bootstrap alert "Success". |
||
55 | * |
||
56 | * @param array $args The arguments. |
||
57 | * @return string Returns the Bootstrap alert "Success". |
||
58 | */ |
||
59 | public function bootstrapAlertSuccessFunction(array $args = []) { |
||
62 | |||
63 | /** |
||
64 | * Displays a Bootstrap alert "Warning". |
||
65 | * |
||
66 | * @param array $args The arguments. |
||
67 | * @return string Returns the Bootstrap alert "Warning". |
||
68 | */ |
||
69 | public function bootstrapAlertWarningFunction(array $args = []) { |
||
72 | |||
73 | /** |
||
74 | * Get the Twig functions. |
||
75 | * |
||
76 | * @return array Returns the Twig functions. |
||
77 | */ |
||
78 | public function getFunctions() { |
||
86 | |||
87 | } |
||
88 |