Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The entity manager has been split into 11 different services: https://www.drupal.org/node/2549139
We'll want to replace the entity manager (injected into our forms, services) with the more appropriate replacement(s). In most cases that will be the EntityTypeManager, since we only call getStorage() on it.
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedComment #3
czigor CreditAttribution: czigor commentedComment #4
bojanz CreditAttribution: bojanz at Centarro commentedAnswering the IRC question: if the parent core class uses entity manager, then there's nothing we can do. This is about fixing the places where we do the injection ourselves.
Comment #5
czigor CreditAttribution: czigor at Liip commentedhttps://github.com/commerceguys/commerce/pull/270
Comment #6
czigor CreditAttribution: czigor at Liip commentedAt the moment tests are failing but I cannot install commerce due to some profile2 issues.
Comment #7
bojanz CreditAttribution: bojanz at Centarro commented@czigor
Use the latest profile -dev (from github.com/bojanz/profile or drupal.org/project/profile), I fixed all crashes yesterday.
Comment #8
czigor CreditAttribution: czigor at Liip commentedThanks! I was looking in https://www.drupal.org/project/profile2.
See comment in github, I don't know if I should fix the tests here.
Comment #9
bojanz CreditAttribution: bojanz at Centarro commentedMerged.