1 | <?php |
||
25 | class FontAwesomePluginTwigExtension extends AbstractPluginTwigExtension { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.plugin.fontawesome"; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | */ |
||
37 | public function __construct() { |
||
40 | |||
41 | /** |
||
42 | * Displays a Font Awesome icon. |
||
43 | * |
||
44 | * @param array $args The arguments. |
||
45 | * @return Returns a Font Awesome icon. |
||
46 | */ |
||
47 | public function fontAwesomeIconFunction(array $args = []) { |
||
50 | |||
51 | /** |
||
52 | * Displays a Font Awesome list. |
||
53 | * |
||
54 | * @param array|string $items The list items. |
||
55 | * @return string Returns the Font Awesome list. |
||
56 | */ |
||
57 | public function fontAwesomeListFilter($items) { |
||
68 | |||
69 | /** |
||
70 | * Displays a Font Awesome list icon. |
||
71 | * |
||
72 | * @param string $icon The Font Awesome icon. |
||
73 | * @param string $content The content. |
||
74 | * @return string Returns the Font Awesome list icon. |
||
75 | */ |
||
76 | public function fontAwesomeListIconFilter($icon, $content) { |
||
88 | |||
89 | /** |
||
90 | * Get the Twig filters. |
||
91 | * |
||
92 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
93 | */ |
||
94 | public function getFilters() { |
||
100 | |||
101 | /** |
||
102 | * Get the Twig functions. |
||
103 | * |
||
104 | * @return array Returns the Twig functions. |
||
105 | */ |
||
106 | public function getFunctions() { |
||
111 | |||
112 | } |
||
113 |