Replace deprecated get('entity.manager') with get('entity_type.manager') - Drupal 9 Readiness

Created on 7 December 2020, almost 4 years ago
Updated 1 February 2023, over 1 year ago

Problem/Motivation

In addition to https://www.drupal.org/project/domain_menu_access/issues/3165352 πŸ“Œ Drupal 9 & 10 readiness Fixed , while testing this module with Drupal 9, the following error is given:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "entity.manager". in Drupal\Component\DependencyInjection\Container->get() (line 151 of /var/www/drupalvm/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

This is due to the deprecation of getStorage() in class Drupal\Core\Entity\EntityManager and is also outlined in the upgrade check

πŸ“Œ Task
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States justachris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024