Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function displaySort(\Twig_Environment $twig, $label, $sortKey) |
||
38 | { |
||
39 | $isCurrentSort = ($this->sorter->fetchData('sortBy') == $sortKey); |
||
40 | |||
41 | return $twig->render($this->configuration['sort_link'], [ |
||
42 | 'label' => $label, |
||
43 | 'isCurrent' => $isCurrentSort, |
||
44 | 'sortKey' => $sortKey, |
||
45 | 'sortOrder' => $this->sorter->fetchData('sortOrder'), |
||
46 | ]); |
||
47 | } |
||
48 | |||
54 |