function taxonomy_menu_taxonomy_term_delete in Taxonomy menu 8.3
Same name and namespace in other branches
- 8 taxonomy_menu.module \taxonomy_menu_taxonomy_term_delete()
- 7.2 taxonomy_menu.module \taxonomy_menu_taxonomy_term_delete()
- 7 taxonomy_menu.module \taxonomy_menu_taxonomy_term_delete()
Implements hook_entity_delete().
Check for taxonomy term deletion.
File
- ./
taxonomy_menu.module, line 39 - Contains taxonomy_menu.module.
Code
function taxonomy_menu_taxonomy_term_delete(EntityInterface $entity) {
\Drupal::service('taxonomy_menu.helper')
->removeTaxonomyMenuEntries($entity, FALSE);
}