1 taxonomy.module | taxonomy_term_view(TaxonomyTerm $term, $view_mode = 'full', $langcode = NULL) |
Generate an array for rendering the given term.
Parameters
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().:
File
- core/
modules/ taxonomy/ taxonomy.module, line 825 - Enables the organization of content into categories.
Code
function taxonomy_term_view(TaxonomyTerm $term, $view_mode = 'full', $langcode = NULL) {
return $term->view($view_mode, $langcode);
}