];
$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'],
];
$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();
}
}
}