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
parent
50c767e595
commit
2961746763
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue