function taxonomy_node_update in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/taxonomy.module \taxonomy_node_update()
- 7 modules/taxonomy/taxonomy.module \taxonomy_node_update()
- 9 core/modules/taxonomy/taxonomy.module \taxonomy_node_update()
Implements hook_ENTITY_TYPE_update() for node entities.
Related topics
File
- core/
modules/ taxonomy/ taxonomy.module, line 219 - Enables the organization of content into categories.
Code
function taxonomy_node_update(EntityInterface $node) {
// If we're not dealing with the default revision of the node, do not make any
// change to the taxonomy index.
if (!$node
->isDefaultRevision()) {
return;
}
taxonomy_delete_node_index($node);
taxonomy_build_node_index($node);
}