Entity Import Plus is not compatible with Drupal 9

Created on 8 July 2021, over 3 years ago
Updated 8 September 2024, 4 months ago

Problem/Motivation

Using deprecated Drupal::entityManager

Steps to reproduce

Enable Entity Import Plus in Drupal 9 and open /admin/config/system/entity-importer/*/field-mapping

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

Proposed resolution

Replace Drupal::entityManager by Drupal::entityTypeManager

Remaining tasks

Accept patch.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇿Czech Republic Honza Pobořil

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

Merge Requests

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