Alter-Entity-Autocomplete icon indicating copy to clipboard operation
Alter-Entity-Autocomplete copied to clipboard

Cleans up deprecated call to Drupal::entityManager(). Tested on Drupal 8.9.17

Open cube-dan opened this issue 3 years ago • 0 comments

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

cube-dan avatar Aug 12 '21 14:08 cube-dan