function taxonomy_breadcrumb_taxonomy_vocabulary_delete in Taxonomy Breadcrumb 8
Same name and namespace in other branches
- 7 taxonomy_breadcrumb.module \taxonomy_breadcrumb_taxonomy_vocabulary_delete()
Implements hook_ENTITY_TYPE_delete().
File
- ./
taxonomy_breadcrumb.module, line 108 - Generates taxonomy based breadcrumbs on node pages and taxonomy/term pages.
Code
function taxonomy_breadcrumb_taxonomy_vocabulary_delete(EntityInterface $entity) {
if (FieldStorageConfig::loadByName('taxonomy_term', 'taxonomy_breadcrumb_path')) {
FieldConfig::loadByName('taxonomy_term', $entity
->id(), 'taxonomy_breadcrumb_path')
->delete();
}
}