Saves a term object to the database.
Drupal\taxonomy\Term $term: The taxonomy term entity to be saved.
Status constant indicating whether term was inserted (SAVED_NEW) or updated (SAVED_UPDATED). When inserting a new term, $term->tid will contain the term ID of the newly created term.
function taxonomy_term_save(Term $term) {
return $term
->save();
}