From 9c9a3f6b4c0ea2d9598092aa232a470d684f9786 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Wed, 20 Mar 2024 14:07:53 -0300 Subject: [PATCH] Use getName() instead of ->name. (#116) --- src/Plugin/search_api/processor/TypedRelationFiltered.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/search_api/processor/TypedRelationFiltered.php b/src/Plugin/search_api/processor/TypedRelationFiltered.php index b28dbc1..2e71998 100644 --- a/src/Plugin/search_api/processor/TypedRelationFiltered.php +++ b/src/Plugin/search_api/processor/TypedRelationFiltered.php @@ -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); } }