diff core/modules/field_ui/src/Controller/EntityDisplayModeController.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
line wrap: on
line diff
--- a/core/modules/field_ui/src/Controller/EntityDisplayModeController.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/field_ui/src/Controller/EntityDisplayModeController.php	Thu May 09 15:34:47 2019 +0100
@@ -18,7 +18,7 @@
    */
   public function viewModeTypeSelection() {
     $entity_types = [];
-    foreach ($this->entityManager()->getDefinitions() as $entity_type_id => $entity_type) {
+    foreach ($this->entityTypeManager()->getDefinitions() as $entity_type_id => $entity_type) {
       if ($entity_type->get('field_ui_base_route') && $entity_type->hasViewBuilderClass()) {
         $entity_types[$entity_type_id] = [
           'title' => $entity_type->getLabel(),
@@ -41,7 +41,7 @@
    */
   public function formModeTypeSelection() {
     $entity_types = [];
-    foreach ($this->entityManager()->getDefinitions() as $entity_type_id => $entity_type) {
+    foreach ($this->entityTypeManager()->getDefinitions() as $entity_type_id => $entity_type) {
       if ($entity_type->get('field_ui_base_route') && $entity_type->hasFormClasses()) {
         $entity_types[$entity_type_id] = [
           'title' => $entity_type->getLabel(),