Act on taxonomy terms when inserted.
Modules implementing this hook can act on the term object when saved to the database.
Drupal\taxonomy\Term $term: A taxonomy term 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_term_insert(Drupal\taxonomy\Term $term) {
db_insert('mytable')
->fields(array(
'tid' => $term
->id(),
'foo' => $term->foo,
))
->execute();
}