1 | <?php |
||
24 | class DropdownTwigExtension extends AbstractDropdownTwigExtension { |
||
25 | |||
26 | /** |
||
27 | * Service name. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | const SERVICE_NAME = "wbw.bootstrap.twig.extension.component.dropdown"; |
||
32 | |||
33 | /** |
||
34 | * Displays a Bootstrap dropdown "button". |
||
35 | * |
||
36 | * @param array $args The arguments. |
||
37 | * @return string Returns the Bootstrap dropdown "button". |
||
38 | */ |
||
39 | public function bootstrapDropdownButtonFunction(array $args = []): string { |
||
42 | |||
43 | /** |
||
44 | * Displays a Bootstrap dropdown "divider". |
||
45 | * |
||
46 | * @return string Returns the Bootstrap dropdown "divider". |
||
47 | */ |
||
48 | public function bootstrapDropdownDividerFunction(): string { |
||
51 | |||
52 | /** |
||
53 | * Displays a Bootstrap dropdown "header". |
||
54 | * |
||
55 | * @param array $args The arguments. |
||
56 | * @return string Returns the Bootstrap dropdown "header". |
||
57 | */ |
||
58 | public function bootstrapDropdownHeaderFunction(array $args = []): string { |
||
61 | |||
62 | /** |
||
63 | * Get the Twig functions. |
||
64 | * |
||
65 | * @return TwigFunction[] Returns the Twig functions. |
||
66 | */ |
||
67 | public function getFunctions(): array { |
||
79 | } |
||
80 |