taxonomy_delete_node_index

taxonomy_delete_node_index(EntityInterface $node)

Deletes taxonomy index entries for a given node.

Parameters

\Drupal\Core\Entity\EntityInterface $node: The node entity.

Related topics

Taxonomy indexing
Functions to maintain taxonomy indexing.

File

core/modules/taxonomy/taxonomy.module, line 568
Enables the organization of content into categories.

Code

1
2
3
4
5
function taxonomy_delete_node_index(EntityInterface $node) {
  if (\Drupal::config('taxonomy.settings')->get('maintain_index_table')) {
    db_delete('taxonomy_index')->condition('nid', $node->id())->execute();
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.