- Issue created by @joachim
createItemRenderArray() does this:
$originalObject = $item->getOriginalObject();
if ($originalObject === NULL) {
return [];
}
/** @var \Drupal\Core\Entity\EntityInterface $entity */
$entity = $originalObject->getValue();
But there is no guarantee that TypedDataInterface::getValue() returns an entity.
This causes a search API page on an index that indexes items from https://www.drupal.org/project/date_occur → to crash.
Active
1.0
Code