You are here

function tvi_taxonomy_vocabulary_delete in Taxonomy Views Integrator 8

Same name and namespace in other branches
  1. 7 tvi.module \tvi_taxonomy_vocabulary_delete()

Implements hook_ENTITY_TYPE_delete().

Remove TVI settings when vocabularies are deleted.

File

./tvi.module, line 283
Allow views to be used instead of default taxonomy term page behavior.

Code

function tvi_taxonomy_vocabulary_delete(EntityInterface $entity) {
  Drupal::configFactory()
    ->getEditable('tvi.taxonomy_vocabulary.' . $entity
    ->id())
    ->delete();
}