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_rend

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.modu

taxonomy_term_uri

taxonomy_term_uri($term) Entity URI callback. File core/modules/taxonomy/taxonomy.module, line 92 Enables the organization of content into categories. Code function taxonomy_term_uri($term) { return new Url('entity.taxonomy_term.canonical', array( 'taxonomy_term' => $term->id(), )); }

taxonomy_term_title

taxonomy_term_title(Term $term) 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 462 Enables the organization of content into categories. Code function taxonomy_term_title(Term $term) { return $term->getName(); }

taxonomy_term_load_multiple_by_name

taxonomy_term_load_multiple_by_name($name, $vocabulary = NULL) Try to map a string to an existing term, as for glossary use. Provides a case-insensitive and trimmed mapping, to maximize the likelihood of a successful match. Parameters $name: Name of the term to search for. $vocabulary: (optional) Vocabulary machine name to limit the search. Defaults to NULL. Return value An array of matching term objects. File core/modules/taxonomy/taxonomy.module, line 335 Enables the organization of content

taxonomy_term_load_multiple

taxonomy_term_load_multiple(array $tids = NULL) Load multiple taxonomy terms based on certain conditions. This function should be used whenever you need to load more than one term from the database. Terms are loaded into memory and will not require database access if loaded again during the same page request. Parameters array $tids: (optional) An array of entity IDs. If omitted, all entities are loaded. Return value array An array of taxonomy term entities, indexed by tid. When no results are

taxonomy_term_load

taxonomy_term_load($tid) Return the taxonomy term entity matching a term ID. Parameters $tid: A term's ID Return value \Drupal\taxonomy\Entity\Term|null A taxonomy term entity, or NULL if the term was not found. Results are statically cached. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\taxonomy\Entity\Term::load(). File core/modules/taxonomy/taxonomy.module, line 426 Enables the organization of content into categories. Code function taxonomy_term_load($tid) {

taxonomy_term_is_page

taxonomy_term_is_page(Term $term) Returns whether the current page is the page of the passed-in term. Parameters \Drupal\taxonomy\Entity\Term $term: A taxonomy term entity. File core/modules/taxonomy/taxonomy.module, line 276 Enables the organization of content into categories. Code function taxonomy_term_is_page(Term $term) { if (\Drupal::routeMatch()->getRouteName() == 'entity.taxonomy_term.canonical' && $page_term_id = \Drupal::routeMatch()->getRawParameter('taxonomy_term'

taxonomy_terms_static_reset

taxonomy_terms_static_reset() Clear all static cache variables for terms. File core/modules/taxonomy/taxonomy.module, line 286 Enables the organization of content into categories. Code function taxonomy_terms_static_reset() { \Drupal::entityManager()->getStorage('taxonomy_term')->resetCache(); }

taxonomy_taxonomy_term_delete

taxonomy_taxonomy_term_delete(Term $term) Implements hook_ENTITY_TYPE_delete() for taxonomy_term entities. Related topics Taxonomy indexing Functions to maintain taxonomy indexing. File core/modules/taxonomy/taxonomy.module, line 577 Enables the organization of content into categories. Code function taxonomy_taxonomy_term_delete(Term $term) { if (\Drupal::config('taxonomy.settings')->get('maintain_index_table')) { // Clean up the {taxonomy_index} table when terms are deleted. d