Skip to content

Commit

Permalink
phpcs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Feb 28, 2023
1 parent 70bcf00 commit 3d8f1a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Plugin/search_api/processor/EntityReferenceWithUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3d8f1a9

Please sign in to comment.