taxonomy_menu.module in Zircon Profile 8.0
Same filename and directory in other branches
Contains taxonomy_menu.module.
File
modules/taxonomy_menu/taxonomy_menu.moduleView source
<?php
/**
* @file
* Contains taxonomy_menu.module.
*/
/**
* Implements hook_entity_insert().
*
* Check for taxonomy term insert.
*/
function taxonomy_menu_taxonomy_term_insert(\Drupal\Core\Entity\EntityInterface $entity) {
\Drupal::service('taxonomy_menu.helper')
->generateTaxonomyMenuEntries($entity, FALSE);
}
/**
* Implements hook_entity_delete().
*
* Check for taxonomy term deletion.
*/
function taxonomy_menu_taxonomy_term_delete(Drupal\Core\Entity\EntityInterface $entity) {
\Drupal::service('taxonomy_menu.helper')
->removeTaxonomyMenuEntries($entity, FALSE);
}
/**
* Implements hook_entity_update().
*
* Check for taxonomy term updates.
*/
function taxonomy_menu_taxonomy_term_update(Drupal\Core\Entity\EntityInterface $entity) {
\Drupal::service('taxonomy_menu.helper')
->updateTaxonomyMenuEntries($entity, FALSE);
}
Functions
Name | Description |
---|---|
taxonomy_menu_taxonomy_term_delete | Implements hook_entity_delete(). |
taxonomy_menu_taxonomy_term_insert | Implements hook_entity_insert(). |
taxonomy_menu_taxonomy_term_update | Implements hook_entity_update(). |