taxonomy_vocabulary_get_names

taxonomy_vocabulary_get_names() Get names for all taxonomy vocabularies. Return value array A list of existing vocabulary IDs. File core/modules/taxonomy/taxonomy.module, line 306 Enables the organization of content into categories. Code function taxonomy_vocabulary_get_names() { $names = &drupal_static(__FUNCTION__); if (!isset($names)) { $names = array(); $config_names = \Drupal::configFactory()->listAll('taxonomy.vocabulary.'); foreach ($config_names as $config_nam

taxonomy_views_data_alter

taxonomy_views_data_alter(&$data) Implements hook_views_data_alter(). File core/modules/taxonomy/taxonomy.views.inc, line 13 Provides views data for taxonomy.module. Code function taxonomy_views_data_alter(&$data) { $data['node_field_data']['term_node_tid'] = array( 'title' => t('Taxonomy terms on node'), 'help' => t('Relate nodes to taxonomy terms, specifying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple

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

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_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_node_update

taxonomy_node_update(EntityInterface $node) Implements hook_ENTITY_TYPE_update() for node entities. Related topics Taxonomy indexing Functions to maintain taxonomy indexing. File core/modules/taxonomy/taxonomy.module, line 544 Enables the organization of content into categories. Code function taxonomy_node_update(EntityInterface $node) { // If we're not dealing with the default revision of the node, do not make any // change to the taxonomy index. if (!$node->isDefaultRevision()) {

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_page_attachments_alter

taxonomy_page_attachments_alter(array &$page) Implements hook_page_attachments_alter(). File core/modules/taxonomy/taxonomy.module, line 101 Enables the organization of content into categories. Code function taxonomy_page_attachments_alter(array &$page) { $route_match = \Drupal::routeMatch(); if ($route_match->getRouteName() == 'entity.taxonomy_term.canonical' && ($term = $route_match->getParameter('taxonomy_term')) && $term instanceof TermInterface) { fo