1 | <?php |
||
20 | class TwigExtensions { |
||
21 | |||
22 | /** |
||
23 | * Registers all extensions. |
||
24 | * |
||
25 | * @param Container $app |
||
26 | * the current application |
||
27 | */ |
||
28 | public function registerTwigExtensions(Container $app) { |
||
36 | /** |
||
37 | * To have array_column available as Twig filter. |
||
38 | * |
||
39 | * @param $array |
||
40 | * the array |
||
41 | * @param $key |
||
42 | * the key |
||
43 | * |
||
44 | * @return array |
||
45 | * the resulting array |
||
46 | */ |
||
47 | public function arrayColumn($array, $key) { |
||
50 | |||
51 | /** |
||
52 | * Gets a language name in the given language. |
||
53 | * |
||
54 | * @param string $language |
||
55 | * the language code of the desired language name |
||
56 | * |
||
57 | * @return string |
||
58 | * the language name in the given language or null if not available |
||
59 | */ |
||
60 | public function getLanguageName($language) { |
||
63 | |||
64 | } |
||
65 |