private function updateBreadcrumbNode()
    {
        $request = $this->requestStack->getCurrentRequest();

        if ($request->query->has('pn')) {
            $this->session->set('tl_page_node', (int) $request->query->get('pn'));

            $params = array_merge(
                $request->get('_route_params'),
                $request->query->all()
            );

            unset($params['pn']);

            throw new RedirectResponseException(
                $this->router->generate(
                    $request->get('_route'),
                    $params
                )
            );
        }
    }
private function updateBreadcrumbNode()
    {
        $request = $this->requestStack->getCurrentRequest();

        if ($request->query->has('pn')) {
            $this->session->set('tl_page_node', (int) $request->query->get('pn'));

            $params = array_merge(
                $request->get('_route_params'),
                $request->query->all()
            );

            unset($params['pn']);

            throw new RedirectResponseException(
                $this->router->generate(
                    $request->get('_route'),
                    $params
                )
            );
        }
    }
private function updateBreadcrumbNode ( ) { $ request = $ this -> requestStack -> getCurrentRequest ( ) ; if ( $ request -> query -> has ( 'pn' ) ) { $ this -> session -> set ( 'tl_page_node' , ( int ) $ request -> query -> get ( 'pn' ) ) ; $ params = array_merge ( $ request -> get ( '_route_params' ) , $ request -> query -> all ( ) ) ; unset ( $ params [ 'pn' ] ) ; throw new RedirectResponseException ( $ this -> router -> generate ( $ request -> get ( '_route' ) , $ params ) ) ; } }
Sets a new node if input value is given.
Sets a new node if input value is given .