diff --git a/core/lib/Drupal/Core/Entity/EntityDisplayManager.php b/core/lib/Drupal/Core/Entity/EntityDisplayManager.php index 2d312d1..cb23e27 100644 --- a/core/lib/Drupal/Core/Entity/EntityDisplayManager.php +++ b/core/lib/Drupal/Core/Entity/EntityDisplayManager.php @@ -225,7 +225,8 @@ protected function getDisplayModeOptionsByBundle($display_type, $entity_type_id, } // Load the corresponding displays. - $displays = $this->getStorage($display_type == 'form_mode' ? 'entity_form_display' : 'entity_view_display') + $displays = $this->entityTypeManager + ->getStorage($display_type == 'form_mode' ? 'entity_form_display' : 'entity_view_display') ->loadMultiple($load_ids); // Unset the display modes that are not active or do not exist.