summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/taxonomy/taxonomy.module')
-rw-r--r--core/modules/taxonomy/taxonomy.module22
1 files changed, 6 insertions, 16 deletions
diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module
index 04c00e36b6c..6694f62e563 100644
--- a/core/modules/taxonomy/taxonomy.module
+++ b/core/modules/taxonomy/taxonomy.module
@@ -10,21 +10,6 @@ use Drupal\Core\Render\Element;
use Drupal\taxonomy\Entity\Term;
/**
- * Implements hook_theme_suggestions_HOOK().
- */
-function taxonomy_theme_suggestions_taxonomy_term(array $variables): array {
- $suggestions = [];
-
- /** @var \Drupal\taxonomy\TermInterface $term */
- $term = $variables['elements']['#taxonomy_term'];
-
- $suggestions[] = 'taxonomy_term__' . $term->bundle();
- $suggestions[] = 'taxonomy_term__' . $term->id();
-
- return $suggestions;
-}
-
-/**
* Prepares variables for taxonomy term templates.
*
* Default template: taxonomy-term.html.twig.
@@ -90,6 +75,11 @@ function taxonomy_term_is_page(Term $term) {
}
/**
+ * @addtogroup taxonomy_index
+ * @{
+ */
+
+/**
* Builds and inserts taxonomy index entries for a given node.
*
* The index lists all terms that are related to a given node entity, and is
@@ -152,5 +142,5 @@ function taxonomy_delete_node_index(EntityInterface $node): void {
}
/**
- * @} End of "defgroup taxonomy_index".
+ * @} End of "addtogroup taxonomy_index".
*/