Skip to content
Snippets Groups Projects

Update DateOccurrence.php

Open Praveen rani requested to merge issue/date_recur_search_api-3452380:1.0.x into 1.0.x
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -42,7 +42,7 @@ class DateOccurrence extends ComputedFieldBase {
/**
* {@inheritdoc}
*/
public function attachAsBundleField(&$fields, EntityTypeInterface $entity_type, string $bundle): void {
public function attachAsBundleField($fields, EntityTypeInterface $entity_type, string $bundle): bool {
/** @var \Drupal\Core\Field\FieldDefinitionInterface $field */
foreach ($fields as $field) {
if ($field->getType() == 'date_recur') {
@@ -56,6 +56,9 @@ class DateOccurrence extends ComputedFieldBase {
$fields[$derived_computed_field_name] = $derived_computed_field;
}
}
// Return true to indicate the fields were successfully attached.
return true;
}
/**
Loading