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;
    }
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;
    }
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 ; }
Get all available filter fields for the current controller action.

@return array
Get all available filter fields for the current controller action .