AssetManager\Service\AssetCacheManager::getCacheProviderConfig PHP Method

getCacheProviderConfig() private method

Get the cache provider config. Use default values if defined.
private getCacheProviderConfig ( $path ) : null | array
$path
return null | array Cache config definition. Returns null if not found in config.
    private function getCacheProviderConfig($path)
    {
        $cacheProvider = null;
        if (!empty($this->config[$path]) && !empty($this->config[$path]['cache'])) {
            $cacheProvider = $this->config[$path];
        }
        if (!$cacheProvider && !empty($this->config['default']) && !empty($this->config['default']['cache'])) {
            $cacheProvider = $this->config['default'];
        }
        return $cacheProvider;
    }