Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Feb 16, 2024
1 parent 632a9fb commit d946854
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Plugin/search_api/processor/EDTFYear.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,14 @@ public function validateConfigurationForm(array &$form, FormStateInterface $form
public function addFieldValues(ItemInterface $item) {
$entity = $item->getOriginalObject()->getValue();
foreach ($this->configuration['fields'] as $field) {
[$entityType, $bundle, $field_name] = explode('|', $field, 3);
$components = explode('|', $field, 3);
if (count($components) != 3) {
continue;
}

[$entityType, $bundle, $field_name] = $components;

$edtf = FALSE;
if ($entityType === 'paragraph') {
$edtf = $this->getDateFromParagraphField($entity, $bundle, $field_name);
}
Expand Down

0 comments on commit d946854

Please sign in to comment.