original_string: public function setViewParams($view)
      {
          
          foreach ($this->url as $url) {
              if(isset($view->params['urls']) && is_array($view->params['urls'])){
                  $view->params['urls'] = $this->MenuMerge($view->params['urls'],$url);
              }else{
                  $view->params['urls'] = $url;
              }
              
          }
          
          if($module = $this->getModule()){
              $view->params['urls'][$module]['active']=true;
          }
      }
code: public function setViewParams($view)
      {
          
          foreach ($this->url as $url) {
              if(isset($view->params['urls']) && is_array($view->params['urls'])){
                  $view->params['urls'] = $this->MenuMerge($view->params['urls'],$url);
              }else{
                  $view->params['urls'] = $url;
              }
              
          }
          
          if($module = $this->getModule()){
              $view->params['urls'][$module]['active']=true;
          }
      }
code_tokens: public function setViewParams ( $ view ) { foreach ( $ this -> url as $ url ) { if ( isset ( $ view -> params [ 'urls' ] ) && is_array ( $ view -> params [ 'urls' ] ) ) { $ view -> params [ 'urls' ] = $ this -> MenuMerge ( $ view -> params [ 'urls' ] , $ url ) ; } else { $ view -> params [ 'urls' ] = $ url ; } } if ( $ module = $ this -> getModule ( ) ) { $ view -> params [ 'urls' ] [ $ module ] [ 'active' ] = true ; } }
docstring: Registers url params on given View
  @param \yii\web\View $view the view that the asset files are to be registered with.
docstring_tokens: Registers url params on given View