1 taxonomy.module taxonomy_term_save(TaxonomyTerm $term)

Saves a new or updated taxonomy term.

Parameters

TaxonomyTerm $term: The taxonomy term entity to be saved.

Return value

int: Either SAVED_NEW or SAVED_UPDATED depending on the operation performed.

File

core/modules/taxonomy/taxonomy.module, line 711
Enables the organization of content into categories.

Code

function taxonomy_term_save(TaxonomyTerm $term) {
  return $term->save();
}