1 | <?php |
||
25 | class FontAwesomeTwigExtension extends AbstractFontAwesomeTwigExtension implements IconRendererInterface { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "wbw.core.twig.extension.asset.font_awesome"; |
||
33 | |||
34 | /** |
||
35 | * Displays a Font Awesome icon. |
||
36 | * |
||
37 | * @param array $args The arguments. |
||
38 | * @return string Returns the Font Awesome icon. |
||
39 | */ |
||
40 | public function fontAwesomeIconFunction(array $args = []) { |
||
43 | |||
44 | /** |
||
45 | * Displays a Font Awesome list. |
||
46 | * |
||
47 | * @param array|string $items The items. |
||
48 | * @return string Returns the Font Awesome list. |
||
49 | */ |
||
50 | public function fontAwesomeListFilter($items) { |
||
53 | |||
54 | /** |
||
55 | * Displays a Font Awesome list icon. |
||
56 | * |
||
57 | * @param string $icon The icon. |
||
58 | * @param string $content The content. |
||
59 | * @return string Returns the Font Awesome list icon. |
||
60 | */ |
||
61 | public function fontAwesomeListIconFilter($icon, $content) { |
||
64 | |||
65 | /** |
||
66 | * Get the Twig filters. |
||
67 | * |
||
68 | * @return TwigFilter[] Returns the Twig filters. |
||
69 | */ |
||
70 | public function getFilters() { |
||
79 | |||
80 | /** |
||
81 | * Get the Twig functions. |
||
82 | * |
||
83 | * @return TwigFunction[] Returns the Twig functions. |
||
84 | */ |
||
85 | public function getFunctions() { |
||
91 | |||
92 | /** |
||
93 | * {@inheritDoc} |
||
94 | */ |
||
95 | public function renderIcon($name, $style) { |
||
98 | } |
||
99 |