Alter-Entity-Autocomplete
Alter-Entity-Autocomplete copied to clipboard
Cleans up deprecated call to Drupal::entityManager(). Tested on Drupal 8.9.17
Minnur,
Thanks for your alter autocomplete blog post, and for posting the example to github!
This patch replaces a deprecated call to Drupal::entityManager()->getTranslationFromContext() and replaces it with a call to the entity.repository service method of the same name; \Drupal::service('entity.repository')->getTranslationFromContext()
After this example worked out so well for me I'll be digging a lot deeper into downloads.minnur.com!
-Dan