You are here

class ConfigOverrider in Advanced CSS/JS Aggregation 8.2

Override required configuration values.

Hierarchy

Expanded class hierarchy of ConfigOverrider

2 string references to 'ConfigOverrider'
advagg_bundler.services.yml in advagg_bundler/advagg_bundler.services.yml
advagg_bundler/advagg_bundler.services.yml
ConfigOverrider::getCacheSuffix in advagg_bundler/src/ConfigOverrider.php
The string to append to the configuration static cache name.
1 service uses ConfigOverrider
advagg_bundler.overrider in advagg_bundler/advagg_bundler.services.yml
Drupal\advagg_bundler\ConfigOverrider

File

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

Namesort descending Modifiers Type Description Overrides
ConfigOverrider::createConfigObject public function Creates a configuration object for use during install and synchronization. Overrides ConfigFactoryOverrideInterface::createConfigObject
ConfigOverrider::getCacheableMetadata public function Gets the cacheability metadata associated with the config factory override. Overrides ConfigFactoryOverrideInterface::getCacheableMetadata
ConfigOverrider::getCacheSuffix public function The string to append to the configuration static cache name. Overrides ConfigFactoryOverrideInterface::getCacheSuffix
ConfigOverrider::loadOverrides public function Returns config overrides. Overrides ConfigFactoryOverrideInterface::loadOverrides