src/Charcoal/Admin/AdminWidget.php
public function dataSourceFilter($sourceIdent)
    {
        if (!is_string($sourceIdent)) {
            throw new InvalidArgumentException('Data source identifier must be a string');
        }

        $filters = array_merge($this->defaultDataSourceFilters(), $this->dataSourceFilters);

        if (isset($filters[$sourceIdent])) {
            return $filters[$sourceIdent];
        }

        return null;
    }
public function dataSourceFilter($sourceIdent)
    {
        if (!is_string($sourceIdent)) {
            throw new InvalidArgumentException('Data source identifier must be a string');
        }

        $filters = array_merge($this->defaultDataSourceFilters(), $this->dataSourceFilters);

        if (isset($filters[$sourceIdent])) {
            return $filters[$sourceIdent];
        }

        return null;
    }
public function dataSourceFilter ( $ sourceIdent ) { if ( ! is_string ( $ sourceIdent ) ) { throw new InvalidArgumentException ( 'Data source identifier must be a string' ) ; } $ filters = array_merge ( $ this -> defaultDataSourceFilters ( ) , $ this -> dataSourceFilters ) ; if ( isset ( $ filters [ $ sourceIdent ] ) ) { return $ filters [ $ sourceIdent ] ; } return null ; }
Retrieve the callable filter for the given data source.

@param string $sourceIdent A data source identifier.
@throws InvalidArgumentException If the data source is invalid.
@return callable|null Returns a callable variable.
Retrieve the callable filter for the given data source .