From 23fd4fe2720cd14a27ce64c40adfd6262cc97823 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Tue, 17 Sep 2019 10:05:32 +0100
Subject: [PATCH] Issue #3081176 by Berdir, amateescu:
 \Drupal\views\EntityViewsData is missing constructor BC for entity field
 manager

---
 core/modules/views/src/EntityViewsData.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index d515e26c5d74..cf886f4caf89 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -101,6 +101,10 @@ public function __construct(EntityTypeInterface $entity_type, SqlEntityStorageIn
     $this->storage = $storage_controller;
     $this->moduleHandler = $module_handler;
     $this->setStringTranslation($translation_manager);
+    if (!$entity_field_manager) {
+      @trigger_error('Calling EntityViewsData::__construct() with the $entity_field_manager argument is supported in drupal:8.8.0 and will be required before drupal:9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
+      $entity_field_manager = \Drupal::service('entity_field.manager');
+    }
     $this->entityFieldManager = $entity_field_manager;
   }
 
-- 
GitLab