|
@@ -32,7 +32,7 @@ class EntityAutocompleteMatcher extends \Drupal\Core\Entity\EntityAutocompleteMa
|
|
|
foreach ($values as $entity_id => $label) {
|
|
|
|
|
|
$entity = \Drupal::entityTypeManager()->getStorage($target_type)->load($entity_id);
|
|
|
- $entity = \Drupal::entityManager()->getTranslationFromContext($entity);
|
|
|
+ $entity = \Drupal::service('entity.repository')->getTranslationFromContext($entity);
|
|
|
|
|
|
$key = $label . ' (' . $entity_id . ')';
|
|
|
// Strip things like starting/trailing white spaces, line breaks and tags.
|