瀏覽代碼

fixed ->getVocabularyId() deprecated

bach 1 月之前
父節點
當前提交
836bd44eee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/themes/custom/edlptheme/edlptheme.theme

+ 1 - 1
web/themes/custom/edlptheme/edlptheme.theme

@@ -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'];
     }
   }