src/Charcoal/Admin/Ui/CollectionContainerTrait.php
public function setCollectionConfig($config)
    {
        if (empty($config) || !is_array($config)) {
            $config = [];
        }

        $this->collectionConfig = array_replace_recursive(
            $this->defaultCollectionConfig(),
            $this->parseCollectionConfig($config)
        );

        return $this;
    }
public function setCollectionConfig($config)
    {
        if (empty($config) || !is_array($config)) {
            $config = [];
        }

        $this->collectionConfig = array_replace_recursive(
            $this->defaultCollectionConfig(),
            $this->parseCollectionConfig($config)
        );

        return $this;
    }
public function setCollectionConfig ( $ config ) { if ( empty ( $ config ) || ! is_array ( $ config ) ) { $ config = [ ] ; } $ this -> collectionConfig = array_replace_recursive ( $ this -> defaultCollectionConfig ( ) , $ this -> parseCollectionConfig ( $ config ) ) ; return $ this ; }
Replace the collection's configset with the given parameters.

@param  mixed $config New collection config values.
@return CollectionContainerInterface Chainable
Replace the collection s configset with the given parameters .