original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Update the parameter name.
  
  @param ChangelanguageNavigationEvent $event
docstring_tokens: Update the parameter name .