1 taxonomy.module taxonomy_term_view(TaxonomyTerm $term, $view_mode = 'full', $langcode = NULL)

Generate an array for rendering the given term.


TaxonomyTerm $term: A taxonomy term entity.

$view_mode: (optional) Display mode, e.g. 'full' or 'teaser'. Defaults to 'full'.

$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.

Return value

An array as expected by backdrop_render().:


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


function taxonomy_term_view(TaxonomyTerm $term, $view_mode = 'full', $langcode = NULL) {
  return $term->view($view_mode, $langcode);