| 1 | <?php |
||
| 7 | class ElasticaSorterExtension extends \Twig_Extension |
||
| 8 | { |
||
| 9 | protected $sorter; |
||
| 10 | protected $configuration; |
||
| 11 | |||
| 12 | public function __construct(ElasticaQuerySorter $sorter, $configuration) |
||
| 17 | |||
| 18 | public function getFunctions() |
||
| 31 | |||
| 32 | public function clearSort(\Twig_Environment $twig) |
||
| 36 | |||
| 37 | public function displaySort(\Twig_Environment $twig, $label, $sortKey) |
||
| 48 | |||
| 49 | public function getName() |
||
| 53 | } |
||
| 54 |