original_string: protected function _getFilterFields()
      {
          $filterFields = [];
  
          foreach ($this->controller->filterFields as $field => $options) {
              if (isset($options['actions']) &&
                  is_array($options['actions']) &&
                  in_array($this->action, $options['actions'])
              ) {
                  $filterFields[$field] = $options;
              }
          }
  
          return $filterFields;
      }
code: protected function _getFilterFields()
      {
          $filterFields = [];
  
          foreach ($this->controller->filterFields as $field => $options) {
              if (isset($options['actions']) &&
                  is_array($options['actions']) &&
                  in_array($this->action, $options['actions'])
              ) {
                  $filterFields[$field] = $options;
              }
          }
  
          return $filterFields;
      }
code_tokens: protected function _getFilterFields ( ) { $ filterFields = [ ] ; foreach ( $ this -> controller -> filterFields as $ field => $ options ) { if ( isset ( $ options [ 'actions' ] ) && is_array ( $ options [ 'actions' ] ) && in_array ( $ this -> action , $ options [ 'actions' ] ) ) { $ filterFields [ $ field ] = $ options ; } } return $ filterFields ; }
docstring: Get all available filter fields for the current controller action.
  
  @return array
docstring_tokens: Get all available filter fields for the current controller action .