function tvi_taxonomy_term_delete in Taxonomy Views Integrator 8
Same name and namespace in other branches
- 7 tvi.module \tvi_taxonomy_term_delete()
Implements hook_taxonomy_term_delete().
Remove TVI settings when terms are deleted.
File
- ./
tvi.module, line 292 - Allow views to be used instead of default taxonomy term page behavior.
Code
function tvi_taxonomy_term_delete(EntityInterface $entity) {
Drupal::configFactory()
->getEditable('tvi.taxonomy_term.' . $entity
->id())
->delete();
}