function taxonomy_node_insert

Same name in other branches
  1. 7.x modules/taxonomy/taxonomy.module \taxonomy_node_insert()
  2. 9 core/modules/taxonomy/taxonomy.module \taxonomy_node_insert()
  3. 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_node_insert()
  4. 10 core/modules/taxonomy/taxonomy.module \taxonomy_node_insert()

Implements hook_ENTITY_TYPE_insert() for node entities.

Related topics

File

core/modules/taxonomy/taxonomy.module, line 196

Code

function taxonomy_node_insert(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.