diff --git a/core/modules/field/field.module b/core/modules/field/field.module index c80dfe5..7c92302 100644 --- a/core/modules/field/field.module +++ b/core/modules/field/field.module @@ -260,7 +260,7 @@ function field_modules_uninstalled($modules) { */ function field_cache_clear() { foreach (\Drupal::entityManager()->getDefinitions() as $entity_type) { - \Drupal::entityManager()->getStorageController($entity_type->id())->resetCache(); + \Drupal::entityManager()->getStorage($entity_type->id())->resetCache(); } field_info_cache_clear(); } diff --git a/core/modules/text/lib/Drupal/text/Tests/TextWithSummaryItemTest.php b/core/modules/text/lib/Drupal/text/Tests/TextWithSummaryItemTest.php index 6d50f34..d431776 100644 --- a/core/modules/text/lib/Drupal/text/Tests/TextWithSummaryItemTest.php +++ b/core/modules/text/lib/Drupal/text/Tests/TextWithSummaryItemTest.php @@ -153,7 +153,7 @@ function testProcessedCache() { ), ), ); - \Drupal::entityManager()->getStorageController($entity_type)->resetCache(); + \Drupal::entityManager()->getStorage($entity_type)->resetCache(); \Drupal::cache('entity')->set("values:$entity_type:" . $entity->id(), $data); $entity = entity_load($entity_type, $entity->id()); $this->assertEqual($entity->summary_field->processed, 'Cached processed value');