ConfigOverrider.php in Advanced CSS/JS Aggregation 8.2
Namespace
Drupal\advagg_bundlerFile
advagg_bundler/src/ConfigOverrider.phpView 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
Name | Description |
---|---|
ConfigOverrider | Override required configuration values. |