diff --git a/core/lib/Drupal/Core/Config/ConfigFactory.php b/core/lib/Drupal/Core/Config/ConfigFactory.php index 3ed5423..742e628 100644 --- a/core/lib/Drupal/Core/Config/ConfigFactory.php +++ b/core/lib/Drupal/Core/Config/ConfigFactory.php @@ -318,7 +318,7 @@ public function rename($old_name, $new_name) { $new_cache_key = $this->getCacheKey($new_name); $this->cache[$new_cache_key] = new Config($new_name, $this->storage, $this->eventDispatcher, $this->typedConfigManager, $this->getLanguage()); - $this->cache[$new_cache_key]->load(); + $this->cache[$new_cache_key]->initWithData($this->storage->read($new_name)); return $this->cache[$new_cache_key]; } diff --git a/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php index 0feabdf..8d76db3 100644 --- a/core/lib/Drupal/Core/Config/ConfigImporter.php +++ b/core/lib/Drupal/Core/Config/ConfigImporter.php @@ -296,7 +296,6 @@ protected function importInvokeOwner() { // Config::validateName($name); if ($entity_type = config_get_entity_type_by_name($name)) { $old_config = new Config($name, $this->storageComparer->getTargetStorage(), $this->eventDispatcher, $this->typedConfigManager); - $old_config->load(); $data = $this->storageComparer->getSourceStorage()->read($name); $new_config = new Config($name, $this->storageComparer->getTargetStorage(), $this->eventDispatcher, $this->typedConfigManager); diff --git a/core/modules/rest/lib/Drupal/rest/Routing/ResourceRoutes.php b/core/modules/rest/lib/Drupal/rest/Routing/ResourceRoutes.php index ef1b93f..9dc764a 100644 --- a/core/modules/rest/lib/Drupal/rest/Routing/ResourceRoutes.php +++ b/core/modules/rest/lib/Drupal/rest/Routing/ResourceRoutes.php @@ -62,7 +62,7 @@ public static function create(ContainerInterface $container) { */ public function routes() { $routes = array(); - $enabled_resources = $this->config->get('rest.settings')->load()->get('resources'); + $enabled_resources = $this->config->get('rest.settings')->get('resources'); // Iterate over all enabled resource plugins. foreach ($enabled_resources as $id => $enabled_methods) {