Issue #3401464 by anushrikumari, sime, shweta__sharma, lauriii, ankithashetty, sijumpk, rkoller: Date range should be in the date_time category

(cherry picked from commit 20c05b5c71)
merge-requests/5779/head
catch 2023-12-11 10:52:21 +00:00
parent 50c767e595
commit 2961746763
1 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,12 @@ use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface;
* @FieldType(
* id = "daterange",
* label = @Translation("Date range"),
* description = @Translation("Create and store date ranges."),
* category = "date_time",
* description = {
* @Translation("Ideal for storing durations that consist of start and end dates (and times)"),
* @Translation("Choose between setting both date and time, or date only, for each duration"),
* @Translation("The system automatically validates that the end date (and time) is later than the start, and both fields are completed"),
* },
* default_widget = "daterange_default",
* default_formatter = "daterange_default",
* list_class = "\Drupal\datetime_range\Plugin\Field\FieldType\DateRangeFieldItemList"