You are here

function taxonomy_node_insert in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/taxonomy.module \taxonomy_node_insert()
  2. 7 modules/taxonomy/taxonomy.module \taxonomy_node_insert()
  3. 9 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 161
Enables the organization of content into categories.

Code

function taxonomy_node_insert(EntityInterface $node) {

  // Add taxonomy index entries for the node.
  taxonomy_build_node_index($node);
}