| 1 | <?php |
||
| 8 | class TwigExtension extends \Twig_Extension |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | 1 | public function getFilters() |
|
| 14 | { |
||
| 15 | return array( |
||
| 16 | 1 | ArrayValuesFilter::get(), |
|
| 17 | 1 | DateArrayFormatter::get(), |
|
| 18 | 1 | EvaluateFilter::get(), |
|
| 19 | 1 | ExtendHashFilter::get(), |
|
| 20 | 1 | HumanDateFilter::get(), |
|
| 21 | 1 | NumberAbbreviation::get(), |
|
| 22 | 1 | TruncateFilter::get(), |
|
| 23 | 1 | MarkdownFilter::get(), |
|
| 24 | 1 | CanonicalUrl::get(), |
|
| 25 | 1 | PluralFilter::get(), |
|
| 26 | YesNoFilter::get() |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | 1 | */ |
|
| 33 | public function getFunctions() |
||
| 41 | |||
| 42 | /** |
||
| 43 | 1 | * {@inheritdoc} |
|
| 44 | */ |
||
| 45 | public function getTests() |
||
| 53 | |||
| 54 | /** |
||
| 55 | 2 | * {@inheritdoc} |
|
| 56 | */ |
||
| 57 | 2 | public function getName() |
|
| 61 | |||
| 62 | public function getOperators() |
||
| 72 | } |
||
| 73 |