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

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_node_predelete

taxonomy_node_predelete(EntityInterface $node) Implements hook_ENTITY_TYPE_predelete() for node entities. Related topics Taxonomy indexing Functions to maintain taxonomy indexing. File core/modules/taxonomy/taxonomy.module, line 557 Enables the organization of content into categories. Code function taxonomy_node_predelete(EntityInterface $node) { // Clean up the {taxonomy_index} table when nodes are deleted. taxonomy_delete_node_index($node); }

taxonomy_node_insert

taxonomy_node_insert(EntityInterface $node) Implements hook_ENTITY_TYPE_insert() for node entities. Related topics Taxonomy indexing Functions to maintain taxonomy indexing. File core/modules/taxonomy/taxonomy.module, line 487 Enables the organization of content into categories. Code function taxonomy_node_insert(EntityInterface $node) { // Add taxonomy index entries for the node. taxonomy_build_node_index($node); }

taxonomy_implode_tags

taxonomy_implode_tags($tags, $vid = NULL) Implodes a list of tags of a certain vocabulary into a string. See also \Drupal\Component\Utility\Tags::explode() File core/modules/taxonomy/taxonomy.module, line 438 Enables the organization of content into categories. Code function taxonomy_implode_tags($tags, $vid = NULL) { $typed_tags = array(); foreach ($tags as $tag) { // Extract terms belonging to the vocabulary in question. if (!isset($vid) || $tag->bundle() == $vid) { //

TAXONOMY_HIERARCHY_SINGLE

Denotes that one or more terms in the vocabulary has a single parent. Deprecated in Drupal 8.2.x and will be removed before 9.0.0. Use \Drupal\taxonomy\VocabularyInterface::HIERARCHY_SINGLE instead. File core/modules/taxonomy/taxonomy.module, line 34 Enables the organization of content into categories. Code const TAXONOMY_HIERARCHY_SINGLE = 1;

TAXONOMY_HIERARCHY_MULTIPLE

Denotes that one or more terms in the vocabulary have multiple parents. Deprecated in Drupal 8.2.x and will be removed before 9.0.0. Use \Drupal\taxonomy\VocabularyInterface::HIERARCHY_MULTIPLE instead. File core/modules/taxonomy/taxonomy.module, line 42 Enables the organization of content into categories. Code const TAXONOMY_HIERARCHY_MULTIPLE = 2;

TAXONOMY_HIERARCHY_DISABLED

Denotes that no term in the vocabulary has a parent. Deprecated in Drupal 8.2.x and will be removed before 9.0.0. Use \Drupal\taxonomy\VocabularyInterface::HIERARCHY_DISABLED instead. File core/modules/taxonomy/taxonomy.module, line 26 Enables the organization of content into categories. Code const TAXONOMY_HIERARCHY_DISABLED = 0;

taxonomy_help

taxonomy_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/taxonomy/taxonomy.module, line 47 Enables the organization of content into categories. Code function taxonomy_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.taxonomy': $field_ui_url = \Drupal::moduleHandler()->moduleExists('field_ui') ? \Drupal::url('help.page', array('name' => 'field_ui')) : '#'; $output = ''; $outp

taxonomy_field_views_data_alter

taxonomy_field_views_data_alter(array &$data, FieldStorageConfigInterface $field_storage) Implements hook_field_views_data_alter(). Views integration for entity reference fields which reference taxonomy terms. Adds a term relationship to the default field data. See also views_field_default_views_data() File core/modules/taxonomy/taxonomy.views.inc, line 62 Provides views data for taxonomy.module. Code function taxonomy_field_views_data_alter(array &$data, FieldStorageConfigInterface