Skip to content

Commit 8b28555

Browse files
Fix getVocabularyId deprecation in widget alter
1 parent 064d6eb commit 8b28555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

finto_taxonomy.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function finto_taxonomy_field_widget_single_element_form_alter(array &$parent, F
2222
$finto_tids = [];
2323

2424
foreach ($parent['target_id']['#default_value'] as $term) {
25-
if ($term->getVocabularyId() == $finto_vid) {
25+
if ($term->bundle() == $finto_vid) {
2626
$finto_tids[] = $term->id();
2727
}
2828
}

0 commit comments

Comments
 (0)