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