فهرست منبع

fixed getTranslationFromContext on materio_commerce/src/EntityAutocompleteMatcher.php

bach 3 سال پیش
والد
کامیت
fab870def8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      web/modules/custom/materio_commerce/src/EntityAutocompleteMatcher.php

+ 1 - 1
web/modules/custom/materio_commerce/src/EntityAutocompleteMatcher.php

@@ -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.