I found this code snippet in a private project:
/**
* Implements hook_custom_element_entity_defaults_alter().
*
* Since custom_elements does not use entity rendering, re-add support for
* entity render history.
*
* @see views_exclude_previous_entity_build_defaults_alter()
*/
function MODULE_custom_element_entity_defaults_alter(CustomElement $element, EntityInterface $entity) {
// Note that we use hook_entity_build_defaults_alter() as this runs even
// when the entity is in render cache.
$render_history = \Drupal::service('views_exclude_previous.render_history');
assert($render_history instanceof EntityRenderHistory);
$render_history->add($entity);
}This should not be necessary, let's make the module itself impelment this hook if needed.
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.