Problem/Motivation

entity_manager service deprecated in favor of entity_type.manager

#2886622: Deprecate all EntityManager methods with E_USER_DEPRECATED

Proposed resolution

Use \Drupal::entityTypeManager()

Comments

thalles created an issue. See original summary.

satyanarayan reddy’s picture

StatusFileSize
new633 bytes

entity_manager service deprecated

Status: Needs review » Needs work

The last submitted patch, 2: 3033944-2.patch, failed testing. View results

idebr’s picture

Title: entity_manager service deprecated » Replace deprecated entity_manager service in SchedulerRequiredTest

The getFieldDefinitions() was moved to the EntityFieldManager, see https://www.drupal.org/node/2549139

thalles’s picture

@idebr, do you have a slack?
Follow the patch!

thalles’s picture

Status: Needs work » Needs review
idebr’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #5 applies to 8.x-1.x and correctly replaces the deprecated entity_manager usage.

  • jonathan1055 committed 79d4e16 on 8.x-1.x authored by thalles
    Issue #3033944 by thalles, Satyanarayan Reddy: Replace deprecated...
jonathan1055’s picture

Status: Reviewed & tested by the community » Fixed

Thanks all. Fixed and committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.