Skip to content

Commit 9c9a3f6

Browse files
authored
Use getName() instead of ->name. (#116)
1 parent d2e7dcd commit 9c9a3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin/search_api/processor/TypedRelationFiltered.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function addFieldValues(ItemInterface $item) {
148148
->getStorage('taxonomy_term')
149149
->load($tid);
150150
if ($taxo_term) {
151-
$taxo_name = $taxo_term->name->value;
151+
$taxo_name = $taxo_term->getName();
152152
$search_api_field->addValue($taxo_name);
153153
}
154154
}

0 commit comments

Comments
 (0)