Skip to content

Commit

Permalink
Use getName() instead of ->name. (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel authored Mar 20, 2024
1 parent d2e7dcd commit 9c9a3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/search_api/processor/TypedRelationFiltered.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function addFieldValues(ItemInterface $item) {
->getStorage('taxonomy_term')
->load($tid);
if ($taxo_term) {
$taxo_name = $taxo_term->name->value;
$taxo_name = $taxo_term->getName();
$search_api_field->addValue($taxo_name);
}
}
Expand Down

0 comments on commit 9c9a3f6

Please sign in to comment.