1 | <?php |
||
25 | class AlertComponentTwigExtension extends AbstractComponentTwigExtension { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.component.alert"; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | */ |
||
37 | public function __construct() { |
||
40 | |||
41 | /** |
||
42 | * Displays a Bootstrap alert "Danger". |
||
43 | * |
||
44 | * @param array $args The arguments. |
||
45 | * @return string Returns the Bootstrap alert "Danger". |
||
46 | */ |
||
47 | public function bootstrapAlertDangerFunction(array $args = []) { |
||
50 | |||
51 | /** |
||
52 | * Displays a Bootstrap alert "Info". |
||
53 | * |
||
54 | * @param array $args The arguments. |
||
55 | * @return string Returns the Bootstrap alert "Info". |
||
56 | */ |
||
57 | public function bootstrapAlertInfoFunction(array $args = []) { |
||
60 | |||
61 | /** |
||
62 | * Displays a Bootstrap alert "Link". |
||
63 | * |
||
64 | * @param array $args The arguments. |
||
65 | * @return string Returns the Bootstrap alert "Link". |
||
66 | */ |
||
67 | public function bootstrapAlertLinkFunction(array $args = []) { |
||
83 | |||
84 | /** |
||
85 | * Displays a Bootstrap alert "Success". |
||
86 | * |
||
87 | * @param array $args The arguments. |
||
88 | * @return string Returns the Bootstrap alert "Success". |
||
89 | */ |
||
90 | public function bootstrapAlertSuccessFunction(array $args = []) { |
||
93 | |||
94 | /** |
||
95 | * Displays a Bootstrap alert "Warning". |
||
96 | * |
||
97 | * @param array $args The arguments. |
||
98 | * @return string Returns the Bootstrap alert "Warning". |
||
99 | */ |
||
100 | public function bootstrapAlertWarningFunction(array $args = []) { |
||
103 | |||
104 | /** |
||
105 | * Get the Twig functions. |
||
106 | * |
||
107 | * @return Twig_SimpleFunction[] Returns the Twig functions. |
||
108 | */ |
||
109 | public function getFunctions() { |
||
118 | |||
119 | } |
||
120 |