- Issue created by @GeduR
- 🇪🇸Spain eduardo morales alberti Spain, 🇪🇺
The problem comes from \Drupal\entity_mesh\Repository::getLabel
As it gets the label from the entity, but not from the translationprotected function getLabel(?string $entity_type, ?string $entity_id): ?string { if (empty($entity_id) || empty($entity_type)) { return NULL; } try { $storage = $this->entityTypeManager->getStorage($entity_type); } catch (PluginNotFoundException $e) { return NULL; } /** @var \Drupal\Core\Entity\EntityInterface $entity */ $entity = $storage->load($entity_id); if (!$entity instanceof EntityInterface) { return NULL; } return $entity->label(); }
- Merge request !27Issue #3518127 by eduardo morales alberti: Entity Labels (source and target... → (Merged) created by eduardo morales alberti
- 🇪🇸Spain lpeidro Madrid
The code and functionality have been reviewed and are working as expected. The titles in different languages are displayed based on the source or target language.
-
eduardo morales alberti →
committed 74a691d3 on 1.x
Issue #3518127 by eduardo morales alberti: Entity Labels (source and...
-
eduardo morales alberti →
committed 74a691d3 on 1.x