taxonomy_term_view

taxonomy_term_view(Term $term, $view_mode = 'full', $langcode = NULL)

Generates an array which displays a term detail page.

Parameters

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

string $view_mode: View mode; e.g., 'full', 'teaser', etc.

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

Return value

array A $page element suitable for use by drupal_render().

File

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

Code

function taxonomy_term_view(Term $term, $view_mode = 'full', $langcode = NULL) {
  return entity_view($term, $view_mode, $langcode);
}
doc_Drupal
2016-10-29 09:46:34
Comments
Leave a Comment

Please login to continue.