#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

Berdir’s picture

Hm, is it possible that the Entity Translation API issue will fix this?

fago’s picture

totally

fago’s picture

Status: Postponed » Active
fago’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

That's already fixed.