function taxonomy_term_view_multiple

taxonomy_term_view_multiple(array $terms, $view_mode = 'full', $langcode = NULL)

Constructs a drupal_render() style array from an array of loaded terms.

Parameters

array $terms: An array of taxonomy terms as returned by Term::loadMultiple().

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 An array in the format expected by drupal_render().

File

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

Code

function taxonomy_term_view_multiple(array $terms, $view_mode = 'full', $langcode = NULL) {
  return entity_view_multiple($terms, $view_mode, $langcode);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!taxonomy!taxonomy.module/function/taxonomy_term_view_multiple/8.1.x