public function addCurrentPage(FilterViewBuilderParametersEvent $event)
    {
        $parameterBag = $event->getParameters();

        $route = $parameterBag->get('_route');
        if (!in_array($route, [TagRouter::TAG_URL_ROUTE_NAME, TagUrlGenerator::INTERNAL_TAG_ROUTE], true)) {
            return;
        }

        $parameterBag->set('page', (int) $event->getRequest()->get('page', 1));
    }
public function addCurrentPage(FilterViewBuilderParametersEvent $event)
    {
        $parameterBag = $event->getParameters();

        $route = $parameterBag->get('_route');
        if (!in_array($route, [TagRouter::TAG_URL_ROUTE_NAME, TagUrlGenerator::INTERNAL_TAG_ROUTE], true)) {
            return;
        }

        $parameterBag->set('page', (int) $event->getRequest()->get('page', 1));
    }
public function addCurrentPage ( FilterViewBuilderParametersEvent $ event ) { $ parameterBag = $ event -> getParameters ( ) ; $ route = $ parameterBag -> get ( '_route' ) ; if ( ! in_array ( $ route , [ TagRouter :: TAG_URL_ROUTE_NAME , TagUrlGenerator :: INTERNAL_TAG_ROUTE ] , true ) ) { return ; } $ parameterBag -> set ( 'page' , ( int ) $ event -> getRequest ( ) -> get ( 'page' , 1 ) ) ; }
Adds the current page to the parameters.

@param \eZ\Publish\Core\MVC\Symfony\View\Event\FilterViewBuilderParametersEvent $event
Adds the current page to the parameters .