1 | <?php |
||
26 | class MaterialDesignIconicFontPluginTwigExtension extends AbstractPluginTwigExtension implements IconRendererTwigExtensionInterface { |
||
27 | |||
28 | /** |
||
29 | * Service name. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.plugin.materialdesigniconicfont"; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | */ |
||
38 | public function __construct() { |
||
41 | |||
42 | /** |
||
43 | * Get the Twig filters. |
||
44 | * |
||
45 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
46 | */ |
||
47 | public function getFilters() { |
||
53 | |||
54 | /** |
||
55 | * Get the Twig functions. |
||
56 | * |
||
57 | * @return array Returns the Twig functions. |
||
58 | */ |
||
59 | public function getFunctions() { |
||
64 | |||
65 | /** |
||
66 | * Displays a Font Awesome. |
||
67 | * |
||
68 | * @param array $args The arguments. |
||
69 | * @return Returns a Font Awesome. |
||
70 | */ |
||
71 | public function materialDesignIconicFontIconFunction(array $args = []) { |
||
74 | |||
75 | /** |
||
76 | * Displays a Material Design Iconic Font list. |
||
77 | * |
||
78 | * @param array|string $items The list items. |
||
79 | * @return string Returns the Material Design Iconic Font list. |
||
80 | */ |
||
81 | public function materialDesignIconicFontListFilter($items) { |
||
92 | |||
93 | /** |
||
94 | * Displays a Material Design Iconic Font list icon. |
||
95 | * |
||
96 | * @param string $icon The Material Design Iconic Fonticon. |
||
97 | * @param string $content The content. |
||
98 | * @return string Returns the Material Design Iconic Font list icon. |
||
99 | */ |
||
100 | public function materialDesignIconicFontListIconFilter($icon, $content) { |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | public function renderIcon($name, $style) { |
||
119 | |||
120 | } |
||
121 |