1 | <?php |
||
18 | class PaginationExtension extends AbstractExtension |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $template; |
||
24 | |||
25 | /** |
||
26 | * @param string $template |
||
27 | */ |
||
28 | 5 | public function __construct($template) |
|
32 | |||
33 | /** |
||
34 | * @return array |
||
35 | */ |
||
36 | 1 | public function getFunctions() |
|
46 | |||
47 | /** |
||
48 | * @param \Twig\Environment $env |
||
49 | * @param Configuration $pagination |
||
50 | * @param string $template |
||
51 | * @param array $view_params |
||
52 | * @param int $max_navigate |
||
53 | * |
||
54 | * @throws \Twig\Error\LoaderError |
||
55 | * @throws \Twig\Error\RuntimeError |
||
56 | * @throws \Twig\Error\SyntaxError |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | 3 | public function renderPagination( |
|
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | 1 | public function getName() |
|
90 | } |
||
91 |