3 namespace Drupal\config_entity_static_cache_test;
5 use Drupal\Core\Cache\CacheableMetadata;
6 use Drupal\Core\Config\ConfigFactoryOverrideInterface;
7 use Drupal\Core\Config\StorageInterface;
10 * Tests module overrides for configuration.
12 class ConfigOverrider implements ConfigFactoryOverrideInterface {
17 public function loadOverrides($names) {
19 'config_test.dynamic.test_1' => [
20 'label' => 'Overridden label',
28 public function getCacheSuffix() {
29 return 'config_entity_static_cache_test';
35 public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
42 public function getCacheableMetadata($name) {
43 return new CacheableMetadata();