original_string: public function onChangeView()
      {
          $viewMode = Input::get('view');
          $path = Input::get('path');
  
          $this->setViewMode($viewMode);
          $this->setCurrentFolder($path);
  
          $this->prepareVars();
  
          return [
              '#'.$this->getId('item-list') => $this->makePartial('item-list'),
              '#'.$this->getId('folder-path') => $this->makePartial('folder-path'),
              '#'.$this->getId('view-mode-buttons') => $this->makePartial('view-mode-buttons')
          ];
      }
code: public function onChangeView()
      {
          $viewMode = Input::get('view');
          $path = Input::get('path');
  
          $this->setViewMode($viewMode);
          $this->setCurrentFolder($path);
  
          $this->prepareVars();
  
          return [
              '#'.$this->getId('item-list') => $this->makePartial('item-list'),
              '#'.$this->getId('folder-path') => $this->makePartial('folder-path'),
              '#'.$this->getId('view-mode-buttons') => $this->makePartial('view-mode-buttons')
          ];
      }
code_tokens: public function onChangeView ( ) { $ viewMode = Input :: get ( 'view' ) ; $ path = Input :: get ( 'path' ) ; $ this -> setViewMode ( $ viewMode ) ; $ this -> setCurrentFolder ( $ path ) ; $ this -> prepareVars ( ) ; return [ '#' . $ this -> getId ( 'item-list' ) => $ this -> makePartial ( 'item-list' ) , '#' . $ this -> getId ( 'folder-path' ) => $ this -> makePartial ( 'folder-path' ) , '#' . $ this -> getId ( 'view-mode-buttons' ) => $ this -> makePartial ( 'view-mode-buttons' ) ] ; }
docstring: Set view preference AJAX handler
  @return array
docstring_tokens: Set view preference AJAX handler