Interim commit.
[yaffs-website] / web / modules / contrib / advagg / advagg_bundler / src / ConfigOverrider.php
1 <?php
2
3 namespace Drupal\advagg_bundler;
4
5 use Drupal\Core\Cache\CacheableMetadata;
6 use Drupal\Core\Config\ConfigFactoryOverrideInterface;
7 use Drupal\Core\Config\StorageInterface;
8
9 /**
10  * Override required configuration values.
11  */
12 class ConfigOverrider implements ConfigFactoryOverrideInterface {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function loadOverrides($names) {
18     $overrides = [];
19     if (in_array('advagg.settings', $names)) {
20       $overrides['advagg.settings'] = ['core_groups' => FALSE];
21     }
22     return $overrides;
23   }
24
25   /**
26    * {@inheritdoc}
27    */
28   public function getCacheSuffix() {
29     return 'ConfigOverrider';
30   }
31
32   /**
33    * {@inheritdoc}
34    */
35   public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
36     return NULL;
37   }
38
39   /**
40    * {@inheritdoc}
41    */
42   public function getCacheableMetadata($name) {
43     return new CacheableMetadata();
44   }
45
46 }