X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FPlugin%2Fviews%2Ffield%2FTaxonomyIndexTid.php;h=367565c38757ff4cc8b2525f09aa0224cd92ef66;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=e0b9a322125ddd02a48a1cafe16cc57cc7a1dc45;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php b/web/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php index e0b9a3221..367565c38 100644 --- a/web/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php +++ b/web/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php @@ -145,8 +145,8 @@ class TaxonomyIndexTid extends PrerenderList { foreach ($data as $tid => $term) { $this->items[$node_nid][$tid]['name'] = \Drupal::entityManager()->getTranslationFromContext($term)->label(); $this->items[$node_nid][$tid]['tid'] = $tid; - $this->items[$node_nid][$tid]['vocabulary_vid'] = $term->getVocabularyId(); - $this->items[$node_nid][$tid]['vocabulary'] = $vocabularies[$term->getVocabularyId()]->label(); + $this->items[$node_nid][$tid]['vocabulary_vid'] = $term->bundle(); + $this->items[$node_nid][$tid]['vocabulary'] = $vocabularies[$term->bundle()]->label(); if (!empty($this->options['link_to_taxonomy'])) { $this->items[$node_nid][$tid]['make_link'] = TRUE;