diff --git a/src/Plugin/Field/FieldFormatter/EDTFFormatter.php b/src/Plugin/Field/FieldFormatter/EDTFFormatter.php index 9b2e7dc..b3347d4 100644 --- a/src/Plugin/Field/FieldFormatter/EDTFFormatter.php +++ b/src/Plugin/Field/FieldFormatter/EDTFFormatter.php @@ -158,6 +158,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) { // Sets. if (strpos($item->value, '[') !== FALSE || strpos($item->value, '{') !== FALSE) { $set_qualifier = (strpos($item->value, '[') !== FALSE) ? t('one of the dates:') : t('all of the dates:'); + $formatted_dates = []; foreach (explode(',', trim($item->value, '{}[] ')) as $date) { $date_range = explode('..', $date); switch (count($date_range)) {