diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php index d515e26c5d7430273cc69c303835344022713669..cf886f4caf895b971ead4b71e7e52ced341c38b4 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; }