You are here

function taxonomy_menu_taxonomy_term_insert in Taxonomy menu 8.3

Same name and namespace in other branches
  1. 8 taxonomy_menu.module \taxonomy_menu_taxonomy_term_insert()
  2. 7.2 taxonomy_menu.module \taxonomy_menu_taxonomy_term_insert()
  3. 7 taxonomy_menu.module \taxonomy_menu_taxonomy_term_insert()

Implements hook_entity_insert().

Check for taxonomy term insert.

File

./taxonomy_menu.module, line 30
Contains taxonomy_menu.module.

Code

function taxonomy_menu_taxonomy_term_insert(EntityInterface $entity) {
  \Drupal::service('taxonomy_menu.helper')
    ->generateTaxonomyMenuEntries($entity, FALSE);
}