As the api document said.

Deprecated

in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service.

Should we make a patch to replace all the deprecated part of functions in Drupal::entityManager follow This List?

Patch will be provided soon.

Comments

Jerenus created an issue. See original summary.

jrockowitz’s picture

\Drupal::entityManager() is deprecated but it is still used in Core. In some cases, I am not exactly sure how to properly replace it.

Here are some tickets for references.

- #2624770: Use more specific entity.manager services in core.services.yml
- #2691675: Replace deprecated entityManager() in ControllerBase descendents

Any patch that addresses this issue without breaking any tests is welcomed and will definitely earn you some karma points (+ commit credits)

jerenus’s picture

jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz committed ef8522a on 8.x-1.x authored by Jerenus
    Issue #2775115 by Jerenus: Drupal::entityManager is a half deprecated...
jrockowitz’s picture

Status: Fixed » Closed (fixed)