function TaxonomyHooks::nodePredelete
Implements hook_ENTITY_TYPE_predelete() for node entities.
File
-
core/
modules/ taxonomy/ src/ Hook/ TaxonomyHooks.php, line 162
Class
- TaxonomyHooks
- Hook implementations for taxonomy.
Namespace
Drupal\taxonomy\HookCode
public function nodePredelete(EntityInterface $node) {
// Clean up the {taxonomy_index} table when nodes are deleted.
taxonomy_delete_node_index($node);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.