- πΊπΈUnited States smustgrave
Closing out for π Multiple usages of FieldPluginBase::getEntity do not check for NULL, leading to WSOD Fixed will move credit
Drupal\views\Plugin\views\field\FieldPluginBase\GetEntity is documented as returning an entity.
However if only returns an entity if one of two conditions are true.
if ($relationship_id == 'none') {
return $values->_entity;
}
elseif (isset($values->_relationship_entities[$relationship_id])) {
return $values->_relationship_entities[$relationship_id];
}
otherwise it returns nothing;
Mine is crashing I think when a non-required relationship is not present.
This is problematic in Drupal\views\Plugin\views\field\Field::getItems() because createEntityForGroupBy expects an entity. I think this problem was introduced in 8.1
$this->createEntityForGroupBy($this->getEntity($values), $values);
This also results in the add comment link not being a link in Views. Steps to reproduce from #2671494: Add Comment Field Not Appearing in Views β :
Closed: duplicate
10.1 β¨
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Closing out for π Multiple usages of FieldPluginBase::getEntity do not check for NULL, leading to WSOD Fixed will move credit