Loading src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php +5 Changes for src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -510,6 +510,11 @@ class GeofieldGoogleMapFormatter extends FormatterBase implements ContainerFacto /* @var \Drupal\Core\Entity\EntityInterface $entity */ $entity = $items->getEntity(); // Take the entity translation, if existing. /* @var \Drupal\Core\TypedData\TranslatableInterface $entity */ if ($entity->hasTranslation($langcode)) { $entity = $entity->getTranslation($langcode); } $entity_type = $entity->getEntityTypeId(); $bundle = $entity->bundle(); $entity_id = $entity->id(); Loading Loading
src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php +5 Changes for src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -510,6 +510,11 @@ class GeofieldGoogleMapFormatter extends FormatterBase implements ContainerFacto /* @var \Drupal\Core\Entity\EntityInterface $entity */ $entity = $items->getEntity(); // Take the entity translation, if existing. /* @var \Drupal\Core\TypedData\TranslatableInterface $entity */ if ($entity->hasTranslation($langcode)) { $entity = $entity->getTranslation($langcode); } $entity_type = $entity->getEntityTypeId(); $bundle = $entity->bundle(); $entity_id = $entity->id(); Loading