private function updateParameter(ChangelanguageNavigationEvent $event)
    {
        $currentParam = $this->manager->getParameterName();
        $newParam = $this->manager->getParameterName($event->getNavigationItem()->getRootPage()->id);

        $parameters = $event->getUrlParameterBag();
        $attributes = $parameters->getUrlAttributes();

        if (!isset($attributes[$currentParam])) {
            return;
        }

        $attributes[$newParam] = $attributes[$currentParam];
        unset($attributes[$currentParam]);

        $parameters->setUrlAttributes($attributes);
    }
private function updateParameter(ChangelanguageNavigationEvent $event)
    {
        $currentParam = $this->manager->getParameterName();
        $newParam = $this->manager->getParameterName($event->getNavigationItem()->getRootPage()->id);

        $parameters = $event->getUrlParameterBag();
        $attributes = $parameters->getUrlAttributes();

        if (!isset($attributes[$currentParam])) {
            return;
        }

        $attributes[$newParam] = $attributes[$currentParam];
        unset($attributes[$currentParam]);

        $parameters->setUrlAttributes($attributes);
    }
private function updateParameter ( ChangelanguageNavigationEvent $ event ) { $ currentParam = $ this -> manager -> getParameterName ( ) ; $ newParam = $ this -> manager -> getParameterName ( $ event -> getNavigationItem ( ) -> getRootPage ( ) -> id ) ; $ parameters = $ event -> getUrlParameterBag ( ) ; $ attributes = $ parameters -> getUrlAttributes ( ) ; if ( ! isset ( $ attributes [ $ currentParam ] ) ) { return ; } $ attributes [ $ newParam ] = $ attributes [ $ currentParam ] ; unset ( $ attributes [ $ currentParam ] ) ; $ parameters -> setUrlAttributes ( $ attributes ) ; }
Update the parameter name.

@param ChangelanguageNavigationEvent $event
Update the parameter name .