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

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

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