public function getFilterConfig($filter)
    {
        if (!$this->hasFilter($filter)) {
            throw new Exception("No such filter '$filter' exists.");
        }

        return isset($this->config[$filter])
            ? $this->config[$filter]
            : [];
    }
public function getFilterConfig($filter)
    {
        if (!$this->hasFilter($filter)) {
            throw new Exception("No such filter '$filter' exists.");
        }

        return isset($this->config[$filter])
            ? $this->config[$filter]
            : [];
    }
public function getFilterConfig ( $ filter ) { if ( ! $ this -> hasFilter ( $ filter ) ) { throw new Exception ( "No such filter '$filter' exists." ) ; } return isset ( $ this -> config [ $ filter ] ) ? $ this -> config [ $ filter ] : [ ] ; }
Get configuration for a certain filter.

@param string $filter the label of the filter to get configuration for.
@param array  $config the configuration as an array.

@return array the configuration as an array or empty array.
Get configuration for a certain filter .