Namespace
Drupal\advagg_bundlerFichier
-
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
Titre | Deprecated | Résumé |
---|---|---|
ConfigOverrider | Override required configuration values. |