Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
#1969728: Implement Field API "field types" as TypedData Plugins stumbled over this problem and had to create the following work-a-round:
if ($entity instanceof EntityNG || $entity instanceof EntityBCDecorator) {
// @todo $entity->getTranslation()->get($name) sometimes fails,
// because Entity\Translation::getPropertyDefinitions() is empty() ??
try {
$entities_items[$id] = $entity->getTranslation($langcode)->get($field_name);
}
catch (\InvalidArgumentException $e) {
break;
}
}
Let's fix this here once the issue is done.
Comments
Comment #1
BerdirHm, is it possible that the Entity Translation API issue will fix this?
Comment #2
fagototally
Comment #3
fagoComment #4
fagoThat's already fixed.