function TaxonomyHooks::nodeInsert
Implements hook_ENTITY_TYPE_insert() for node entities.
File
-
core/
modules/ taxonomy/ src/ Hook/ TaxonomyHooks.php, line 139
Class
- TaxonomyHooks
- Hook implementations for taxonomy.
Namespace
Drupal\taxonomy\HookCode
public function nodeInsert(EntityInterface $node) {
// Add taxonomy index entries for the node.
taxonomy_build_node_index($node);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.