1.20.x taxonomy.module taxonomy_term_title(TaxonomyTerm $term)

Title callback: Returns the title of the taxonomy term.

Parameters

TaxonomyTerm $term: A taxonomy term entity.

Return value

An unsanitized string that is the title of the taxonomy term.:

See also

taxonomy_menu()

File

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

Code

function taxonomy_term_title(TaxonomyTerm $term) {
  return $term->name;
}