Namespace

Drupal\advagg_bundler

File

advagg_bundler/src/ConfigOverrider.php

View source
<?php

namespace Drupal\advagg_bundler;

use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Config\ConfigFactoryOverrideInterface;
use Drupal\Core\Config\StorageInterface;

/**
 * Override required configuration values.
 */
class ConfigOverrider implements ConfigFactoryOverrideInterface {
    
    /**
     * {@inheritdoc}
     */
    public function loadOverrides($names) {
        $overrides = [];
        if (in_array('advagg.settings', $names)) {
            $overrides['advagg.settings'] = [
                'core_groups' => FALSE,
            ];
        }
        return $overrides;
    }
    
    /**
     * {@inheritdoc}
     */
    public function getCacheSuffix() {
        return 'ConfigOverrider';
    }
    
    /**
     * {@inheritdoc}
     */
    public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
        return NULL;
    }
    
    /**
     * {@inheritdoc}
     */
    public function getCacheableMetadata($name) {
        return new CacheableMetadata();
    }

}

Classes

Title Deprecated Summary
ConfigOverrider Override required configuration values.