You are here

function taxonomy_node_insert in Drupal 8

Same name and namespace in other branches
  1. 7 modules/taxonomy/taxonomy.module \taxonomy_node_insert()
  2. 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 518
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);
}