function taxonomy_entity_index_taxonomy_term_delete in Taxonomy Entity Index 8
Same name and namespace in other branches
- 7 taxonomy_entity_index.module \taxonomy_entity_index_taxonomy_term_delete()
Implements hook_ENTITY_TYPE_delete().
File
- ./
taxonomy_entity_index.module, line 37 - Module file for taxonomy_entity_index.
Code
function taxonomy_entity_index_taxonomy_term_delete(TermInterface $term) {
\Drupal::database()
->delete('taxonomy_entity_index')
->condition('tid', $term
->id())
->execute();
}