1 | <?php |
||
24 | class StylesheetTwigExtension extends AbstractTwigExtension { |
||
25 | |||
26 | /** |
||
27 | * Service name. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | const SERVICE_NAME = "webeweb.core.twig.extension.stylesheet"; |
||
32 | |||
33 | /** |
||
34 | * Displays a rgba(). |
||
35 | * |
||
36 | * @param string $color The hexadecimal color. |
||
37 | * @param float $alpha The alpha channel. |
||
38 | * @return string Returns the rgba(). |
||
39 | */ |
||
40 | public function cssRGBA($color, $alpha) { |
||
61 | |||
62 | /** |
||
63 | * Get the Twig filters. |
||
64 | * |
||
65 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
66 | */ |
||
67 | public function getFilters() { |
||
72 | |||
73 | /** |
||
74 | * Get the Twig functions. |
||
75 | * |
||
76 | * @return array Returns the Twig functions. |
||
77 | */ |
||
78 | public function getFunctions() { |
||
83 | } |
||
84 |