public function getLoader($filter)
    {
        $config = $this->filterConfig->get($filter);

        $loaderName = empty($config['data_loader']) ? $this->defaultLoader : $config['data_loader'];

        if (!isset($this->loaders[$loaderName])) {
            throw new \InvalidArgumentException(sprintf(
                'Could not find data loader "%s" for "%s" filter type',
                $loaderName,
                $filter
            ));
        }

        return $this->loaders[$loaderName];
    }
public function getLoader($filter)
    {
        $config = $this->filterConfig->get($filter);

        $loaderName = empty($config['data_loader']) ? $this->defaultLoader : $config['data_loader'];

        if (!isset($this->loaders[$loaderName])) {
            throw new \InvalidArgumentException(sprintf(
                'Could not find data loader "%s" for "%s" filter type',
                $loaderName,
                $filter
            ));
        }

        return $this->loaders[$loaderName];
    }
public function getLoader ( $ filter ) { $ config = $ this -> filterConfig -> get ( $ filter ) ; $ loaderName = empty ( $ config [ 'data_loader' ] ) ? $ this -> defaultLoader : $ config [ 'data_loader' ] ; if ( ! isset ( $ this -> loaders [ $ loaderName ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Could not find data loader "%s" for "%s" filter type' , $ loaderName , $ filter ) ) ; } return $ this -> loaders [ $ loaderName ] ; }
Returns a loader previously attached to the given filter.

@param string $filter

@throws \InvalidArgumentException

@return LoaderInterface
Returns a loader previously attached to the given filter .