From 07ae7b084dfa6db00da79924897821850a29cb92 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 28 Feb 2023 15:45:26 -0400 Subject: [PATCH] phpcs. --- src/Plugin/search_api/processor/EntityReferenceWithUri.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Plugin/search_api/processor/EntityReferenceWithUri.php b/src/Plugin/search_api/processor/EntityReferenceWithUri.php index a2ed86a69..0867b19f8 100644 --- a/src/Plugin/search_api/processor/EntityReferenceWithUri.php +++ b/src/Plugin/search_api/processor/EntityReferenceWithUri.php @@ -129,7 +129,6 @@ public function getPropertyDefinitions(DatasourceInterface $datasource = NULL) { /** * {@inheritdoc} - * @throws \Drupal\search_api\SearchApiException */ public function addFieldValues(ItemInterface $item) { // Skip if no Entity Reference with URI fields are configured. @@ -164,8 +163,10 @@ public function addFieldValues(ItemInterface $item) { $target_entity = $this->entityTypeManager ->getStorage($entity_type) ->load($value); - } catch (InvalidPluginDefinitionException $e) { - } catch (PluginNotFoundException $e) { + } + catch (InvalidPluginDefinitionException $e) { + } + catch (PluginNotFoundException $e) { } // Load the taxonomy terms on the entity stored in our field. $referenced_terms = array_merge($referenced_terms, array_filter($target_entity->referencedEntities(), function ($entity) {