function history_node_delete in Drupal 8
Same name and namespace in other branches
- 9 core/modules/history/history.module \history_node_delete()
Implements hook_ENTITY_TYPE_delete() for node entities.
File
- core/
modules/ history/ history.module, line 156 - Records which users have read which content.
Code
function history_node_delete(EntityInterface $node) {
\Drupal::database()
->delete('history')
->condition('nid', $node
->id())
->execute();
}