You are here

function icon_select_taxonomy_term_postsave in Icon Select 8

Implements hook_ENTITY_TYPE_postsave().

1 call to icon_select_taxonomy_term_postsave()
icon_select_taxonomy_term_postdelete in ./icon_select.module
Implements hook_ENTITY_TYPE_postdelete().

File

./icon_select.module, line 140
Basic module file for icon_select module.

Code

function icon_select_taxonomy_term_postsave(Term $term) {
  if ($term
    ->bundle() == 'icons') {

    // Generate Sprites.
    SvgSpriteGenerator::generateSprites('icons');
  }
}