Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294539

Replaced \Drupal::entityManager() in Kernel and Web tests

$
0
0

Problem/Motivation

The EntityManager is @deprecated, and there are lots of usages of \Drupal::entityManager() in core.

Proposed resolution

As a step to remove usages, but keep things manageable,

-   \Drupal::entityManager()->foo();
+  $this->container->get('the_proper_entity_service.manager')->foo();

just in *Test.php, which is about ~230 usages, but only comprising a handful of patterns.

Remaining tasks

TBD.

User interface changes

None.

API changes

None.

Data model changes

None.

Original Report

Replaced with \Drupal::entityTypeManager() instead of \Drupal::entityManager() in date time.


Viewing all articles
Browse latest Browse all 294539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>