diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php index 401b19b..6fcac80 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php @@ -198,18 +198,6 @@ protected function doLoadMultiple(array $ids = NULL) { // cacheability metadata added by config overrides is not lost). foreach ($entities as $id => $entity) { $entity->addCacheableDependency($configs[$id]); - - // Remove the self-referring cache tag that is present on Config objects - // before setting it. A ConfigEntity doesn't need this since it will be - // dynamically generated in EntityInterface::getCacheTagsToInvalidate(). - // The cache tags are merged during rendering, and having fewer tags - // available improves performance. - $cache_tags = $configs[$id]->getCacheTags(); - $key = array_search('config:' . $configs[$id]->getName(), $cache_tags); - if ($key !== FALSE) { - unset($cache_tags[$key]); - } - $entity->addCacheTags($cache_tags); } return $entities;