function taxonomy_node_update
Implements hook_ENTITY_TYPE_update() for node entities.
Related topics
File
-
core/
modules/ taxonomy/ taxonomy.module, line 255
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.