1 | <?php |
||
27 | class MaterialDesignIconicFontTwigExtension extends AbstractMaterialDesignIconicFontTwigExtension implements IconRendererInterface { |
||
28 | |||
29 | /** |
||
30 | * Service name. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | const SERVICE_NAME = "webeweb.core.twig.extension.plugin.material_design_iconic_font"; |
||
35 | |||
36 | /** |
||
37 | * Constructor. |
||
38 | * |
||
39 | * @param Twig_Environment $twigEnvironment The wig environment. |
||
40 | */ |
||
41 | public function __construct(Twig_Environment $twigEnvironment) { |
||
44 | |||
45 | /** |
||
46 | * Get the Twig filters. |
||
47 | * |
||
48 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
49 | */ |
||
50 | public function getFilters() { |
||
56 | |||
57 | /** |
||
58 | * Get the Twig functions. |
||
59 | * |
||
60 | * @return array Returns the Twig functions. |
||
61 | */ |
||
62 | public function getFunctions() { |
||
67 | |||
68 | /** |
||
69 | * Displays a Material Design Iconic Font icon. |
||
70 | * |
||
71 | * @param array $args The arguments. |
||
72 | * @return string Returns the Material Design Iconic Font icon. |
||
73 | */ |
||
74 | public function materialDesignIconicFontIconFunction(array $args = []) { |
||
77 | |||
78 | /** |
||
79 | * Displays a Material Design Iconic Font list. |
||
80 | * |
||
81 | * @param array|string $items The items. |
||
82 | * @return string Returns the Material Design Iconic Font list. |
||
83 | */ |
||
84 | public function materialDesignIconicFontListFilter($items) { |
||
87 | |||
88 | /** |
||
89 | * Displays a Material Design Iconic Font list icon. |
||
90 | * |
||
91 | * @param string $icon The icon. |
||
92 | * @param string $content The content. |
||
93 | * @return string Returns the Material Design Iconic Font list icon. |
||
94 | */ |
||
95 | public function materialDesignIconicFontListIconFilter($icon, $content) { |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function renderIcon($name, $style) { |
||
105 | |||
106 | } |
||
107 |