By mrshowerman on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.2.x
Introduced in version:
11.2.0
Issue links:
Description:
DateTimeRangeConstantsInterface is deprecated and the constants are converted to an enum.
Before
$element[DateTimeRangeConstantsInterface::START_DATE] = $this->buildDate($start_date);
$element[DateTimeRangeConstantsInterface::END_DATE] = $this->buildDate($end_date);
return [
'from_to' => DateTimeRangeConstantsInterface::BOTH,
'separator' => '-',
];
After
$element[DateTimeRangeDisplayOptions::StartDate->value] = $this->buildDate($start_date);
$element[DateTimeRangeDisplayOptions::EndDate->value] = $this->buildDate($end_date);
return [
'from_to' => DateTimeRangeDisplayOptions::Both->value,
'separator' => '-',
];
Impacts:
Module developers