As the method entityManager() is going to be deprecated it has to be changed to entityTypeManager().

Reference : https://api.drupal.org/api/drupal/core!lib!Drupal.php/function/Drupal%3A...

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.

CommentFileSizeAuthor
#2 2763577-1.patch608 bytesashishdalvi

Comments

Ashish.Dalvi created an issue. See original summary.

ashishdalvi’s picture

Status: Active » Needs review
StatusFileSize
new608 bytes

Replaced 2763577 entityManager with entityTypeManager.

Adding patch

ashishdalvi’s picture

  • iStryker committed bf5c957 on 8.x-1.x authored by ashishdalvi
    Issue #2763577 by ashishdalvi: Remove deprecated usage of entityManager...

iStryker credited iStryker.

istryker’s picture

Status: Needs review » Fixed

Done.

Status: Fixed » Closed (fixed)

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