Act on taxonomy vocabularies when inserted.
Modules implementing this hook can act on the vocabulary object when saved to the database.
Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary: A taxonomy vocabulary entity.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_taxonomy_vocabulary_insert(Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) {
if ($vocabulary->synonyms) {
variable_set('taxonomy_' . $vocabulary->vid . '_synonyms', TRUE);
}
}