Act on a newly created term.
This hook runs after a new term object has just been instantiated. It can be used to set initial values, e.g. to provide defaults.
\Drupal\taxonomy\Plugin\Core\Entity\Term $term: The term object.
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_create(\Drupal\taxonomy\Plugin\Core\Entity\Term $term) {
if (!isset($term->foo)) {
$term->foo = 'some_initial_value';
}
}