ngbm_collection_pager
ΒΆ
This function is used to render a pager for a collection:
{{ ngbm_collection_pager(pager, block, 'default') }}
This will render the pager for provided collection (specified by the block and
collection identifier (default
)). pager
variable is an instance of
Pagerfanta\Pagerfanta
class, provided to block view templates automatically
by Netgen Layouts.
The default template is @NetgenBlockManager/collection/default_pager.html.twig
and you can override it by providing a fourth parameter which is a hash of
configuration options:
{{ ngbm_collection_pager(pager, block, 'default', {template: '@App/my_pager.html.twig'}) }}