fixed ->getVocabularyId() deprecated

This commit is contained in:
2024-09-30 13:12:38 +02:00
parent e2e9d3bd7e
commit 836bd44eee
+1 -1
View File
@@ -102,7 +102,7 @@ function edlptheme_theme_suggestions_taxonomy_term_alter(&$suggestions, $variabl
$term = $elements['#taxonomy_term'];
if (is_object($term)) {
$suggestions[] = $elements['#theme'] . '__' . $term->getVocabularyId() . '__' . $elements['#view_mode'];
$suggestions[] = $elements['#theme'] . '__' . $term->bundle() . '__' . $elements['#view_mode'];
$suggestions[] = $elements['#theme'] . '__' . $term->id() . '__' . $elements['#view_mode'];
}
}