Skip to content
Snippets Groups Projects
Commit 23fd4fe2 authored by catch's avatar catch
Browse files

Issue #3081176 by Berdir, amateescu: \Drupal\views\EntityViewsData is missing...

Issue #3081176 by Berdir, amateescu: \Drupal\views\EntityViewsData is missing constructor BC for entity field manager
parent 5c987900
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment