function TaxonomyHooks::nodeInsert
Same name and namespace in other branches
- 11.x core/modules/taxonomy/src/Hook/TaxonomyHooks.php \Drupal\taxonomy\Hook\TaxonomyHooks::nodeInsert()
Implements hook_ENTITY_TYPE_insert() for node entities.
Attributes
#[Hook('node_insert')]
File
-
core/
modules/ taxonomy/ src/ Hook/ TaxonomyHooks.php, line 137
Class
- TaxonomyHooks
- Hook implementations for taxonomy.
Namespace
Drupal\taxonomy\HookCode
public function nodeInsert(EntityInterface $node) : void {
// Add taxonomy index entries for the node.
$this->buildNodeIndex($node);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.