original_string: protected function _setupFilters()
      {
          if (!($this->_filterEnabled = $this->_isFilterEnabled())) {
              return;
          }
  
          $this->filterFields = $this->_getFilterFields();
          $sluggedFilter = $this->request->getParam('sluggedFilter', '');
  
          if ($sluggedFilter === '') {
              return;
          }
  
          $filterData = $this->Filters->find('filterDataBySlug', ['request' => $this->request]);
  
          if (empty($filterData)) {
              return;
          }
  
          $data = array_merge($this->request->getData(), $filterData);
          foreach ($data as $key => $value) {
              $this->request = $this->request->withData($key, $value);
          }
          $this->slug = $sluggedFilter;
      }
code: protected function _setupFilters()
      {
          if (!($this->_filterEnabled = $this->_isFilterEnabled())) {
              return;
          }
  
          $this->filterFields = $this->_getFilterFields();
          $sluggedFilter = $this->request->getParam('sluggedFilter', '');
  
          if ($sluggedFilter === '') {
              return;
          }
  
          $filterData = $this->Filters->find('filterDataBySlug', ['request' => $this->request]);
  
          if (empty($filterData)) {
              return;
          }
  
          $data = array_merge($this->request->getData(), $filterData);
          foreach ($data as $key => $value) {
              $this->request = $this->request->withData($key, $value);
          }
          $this->slug = $sluggedFilter;
      }
code_tokens: protected function _setupFilters ( ) { if ( ! ( $ this -> _filterEnabled = $ this -> _isFilterEnabled ( ) ) ) { return ; } $ this -> filterFields = $ this -> _getFilterFields ( ) ; $ sluggedFilter = $ this -> request -> getParam ( 'sluggedFilter' , '' ) ; if ( $ sluggedFilter === '' ) { return ; } $ filterData = $ this -> Filters -> find ( 'filterDataBySlug' , [ 'request' => $ this -> request ] ) ; if ( empty ( $ filterData ) ) { return ; } $ data = array_merge ( $ this -> request -> getData ( ) , $ filterData ) ; foreach ( $ data as $ key => $ value ) { $ this -> request = $ this -> request -> withData ( $ key , $ value ) ; } $ this -> slug = $ sluggedFilter ; }
docstring: Setup the filter field options.
  
  If the current request is provided with the sluggedFilter param,
  then the corresponding filter data will be fetched and set on the request data.
  
  @return void
docstring_tokens: Setup the filter field options .