function taxonomy_term_title

Same name in other branches
  1. 7.x modules/taxonomy/taxonomy.module \taxonomy_term_title()
  2. 9 core/modules/taxonomy/taxonomy.module \taxonomy_term_title()

Title callback for term pages.

Parameters

\Drupal\taxonomy\Entity\Term $term: A taxonomy term entity.

Return value

The term name to be used as the page title.

File

core/modules/taxonomy/taxonomy.module, line 493

Code

function taxonomy_term_title(Term $term) {
    return $term->getName();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.