You are here

function taxonomy_node_predelete in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/taxonomy.module \taxonomy_node_predelete()
  2. 9 core/modules/taxonomy/taxonomy.module \taxonomy_node_predelete()

Implements hook_ENTITY_TYPE_predelete() for node entities.

Related topics

File

core/modules/taxonomy/taxonomy.module, line 232
Enables the organization of content into categories.

Code

function taxonomy_node_predelete(EntityInterface $node) {

  // Clean up the {taxonomy_index} table when nodes are deleted.
  taxonomy_delete_node_index($node);
}