protected function makeFilterScope($name, $config)
    {
        $label = $config['label'] ?? null;
        $scopeType = $config['type'] ?? null;

        $scope = new FilterScope($name, $label);
        $scope->displayAs($scopeType, $config);

        /*
         * Set scope value
         */
        $scope->value = $this->getScopeValue($scope, @$config['default']);

        return $scope;
    }
protected function makeFilterScope($name, $config)
    {
        $label = $config['label'] ?? null;
        $scopeType = $config['type'] ?? null;

        $scope = new FilterScope($name, $label);
        $scope->displayAs($scopeType, $config);

        /*
         * Set scope value
         */
        $scope->value = $this->getScopeValue($scope, @$config['default']);

        return $scope;
    }
protected function makeFilterScope ( $ name , $ config ) { $ label = $ config [ 'label' ] ?? null ; $ scopeType = $ config [ 'type' ] ?? null ; $ scope = new FilterScope ( $ name , $ label ) ; $ scope -> displayAs ( $ scopeType , $ config ) ; /*
         * Set scope value
         */ $ scope -> value = $ this -> getScopeValue ( $ scope , @ $ config [ 'default' ] ) ; return $ scope ; }
Creates a filter scope object from name and configuration.
Creates a filter scope object from name and configuration .