Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / taxonomy / src / Plugin / views / argument_default / Tid.php
index 95e5b1ef80743f7af7ff954760e42e86c60269e3..ee5a2602d8da3620199eec976e70945fe2642b46 100644 (file)
@@ -116,7 +116,7 @@ class Tid extends ArgumentDefaultPluginBase implements CacheableDependencyInterf
     ];
     $form['node'] = [
       '#type' => 'checkbox',
-      '#title' => $this->t('Load default filter from node page, that\'s good for related taxonomy blocks'),
+      '#title' => $this->t("Load default filter from node page, that's good for related taxonomy blocks"),
       '#default_value' => $this->options['node'],
     ];
 
@@ -194,7 +194,7 @@ class Tid extends ArgumentDefaultPluginBase implements CacheableDependencyInterf
             $taxonomy_terms = $node->{$field->getName()}->referencedEntities();
             /** @var \Drupal\taxonomy\TermInterface $taxonomy_term */
             foreach ($taxonomy_terms as $taxonomy_term) {
-              $taxonomy[$taxonomy_term->id()] = $taxonomy_term->getVocabularyId();
+              $taxonomy[$taxonomy_term->id()] = $taxonomy_term->bundle();
             }
           }
         }