original_string: public function index()
      {
          $this->loadModel('Content.Contents');
          $this->Contents->CreatedBy->fieldable(false);
          $this->Contents->ModifiedBy->fieldable(false);
          $contents = $this->Contents
              ->find('all', ['fieldable' => false])
              ->contain(['ContentTypes', 'CreatedBy', 'ModifiedBy']);
  
          if (!empty($this->request->query['filter']) &&
              $contents instanceof Query
          ) {
              $this->Contents->search($this->request->query['filter'], $contents);
          }
  
          $this->title(__d('content', 'Contents List'));
          $this->set('contents', $this->paginate($contents));
          $this->Breadcrumb->push('/admin/content/manage');
      }
code: public function index()
      {
          $this->loadModel('Content.Contents');
          $this->Contents->CreatedBy->fieldable(false);
          $this->Contents->ModifiedBy->fieldable(false);
          $contents = $this->Contents
              ->find('all', ['fieldable' => false])
              ->contain(['ContentTypes', 'CreatedBy', 'ModifiedBy']);
  
          if (!empty($this->request->query['filter']) &&
              $contents instanceof Query
          ) {
              $this->Contents->search($this->request->query['filter'], $contents);
          }
  
          $this->title(__d('content', 'Contents List'));
          $this->set('contents', $this->paginate($contents));
          $this->Breadcrumb->push('/admin/content/manage');
      }
code_tokens: public function index ( ) { $ this -> loadModel ( 'Content.Contents' ) ; $ this -> Contents -> CreatedBy -> fieldable ( false ) ; $ this -> Contents -> ModifiedBy -> fieldable ( false ) ; $ contents = $ this -> Contents -> find ( 'all' , [ 'fieldable' => false ] ) -> contain ( [ 'ContentTypes' , 'CreatedBy' , 'ModifiedBy' ] ) ; if ( ! empty ( $ this -> request -> query [ 'filter' ] ) && $ contents instanceof Query ) { $ this -> Contents -> search ( $ this -> request -> query [ 'filter' ] , $ contents ) ; } $ this -> title ( __d ( 'content' , 'Contents List' ) ) ; $ this -> set ( 'contents' , $ this -> paginate ( $ contents ) ) ; $ this -> Breadcrumb -> push ( '/admin/content/manage' ) ; }
docstring: Shows a list of all the contents.
  
  @return void
docstring_tokens: Shows a list of all the contents .