src/Model/FilterRegistry.php
protected function _create($class, $alias, $config)
    {
        if (empty($config['name'])) {
            $config['name'] = $alias;
        }
        $instance = new $class($this, $config);

        return $instance;
    }
protected function _create($class, $alias, $config)
    {
        if (empty($config['name'])) {
            $config['name'] = $alias;
        }
        $instance = new $class($this, $config);

        return $instance;
    }
protected function _create ( $ class , $ alias , $ config ) { if ( empty ( $ config [ 'name' ] ) ) { $ config [ 'name' ] = $ alias ; } $ instance = new $ class ( $ this , $ config ) ; return $ instance ; }
Create the filter instance.

Part of the template method for Cake\Core\ObjectRegistry::load()
Enabled filters will be registered with the event manager.

@param  string $class The class name to create.
@param  string $alias The alias of the filter.
@param  array $config An array of config to use for the filter.
@return \PlumSearch\Model\Filter\AbstractFilter The constructed filter class.
Create the filter instance .