Override required configuration values.

Hierarchy

  • class \Drupal\advagg_bundler\ConfigOverrider implements \Drupal\Core\Config\ConfigFactoryOverrideInterface

Expanded class hierarchy of ConfigOverrider

2 string references to 'ConfigOverrider'
advagg_bundler.services.yml dans advagg_bundler/advagg_bundler.services.yml
advagg_bundler/advagg_bundler.services.yml
ConfigOverrider::getCacheSuffix dans advagg_bundler/src/ConfigOverrider.php
1 service uses ConfigOverrider
advagg_bundler.overrider dans advagg_bundler/advagg_bundler.services.yml
Drupal\advagg_bundler\ConfigOverrider

Fichier

advagg_bundler/src/ConfigOverrider.php, line 12

Namespace

Drupal\advagg_bundler
View source
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();
    }

}

Members