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