Problem/Motivation
During the development in #2827055: Add option to show only start or end date in the DateTime Range custom formatter, a new enum was introduced that stores some constant expressions.
Accessing properties of these enums is not compatible with PHP 8.1 (see https://stitcher.io/blog/new-in-php-82#fetch-properties-of-enums-in-cons...), so the enum was later converted back to an interface with constants.
Starting with Drupal 11.0, the minimum PHP version is 8.3, so we can add back the enum after the related issue is committed.
Steps to reproduce
NA
Proposed resolution
Convert the DateTimeRangeConstantsInterface
back to DateTimeRangeDisplayOptions
(see commits b94e605d and 9897da07). Keep the constants as deprecated and remove them in a follow-up.
Remaining tasks
- ☑ Wait for related issue to be committed
- ☑ Implement
- ☐ Review
- ☐ Commit
User interface changes
NA
API changes
NA
Data model changes
NA
Release notes snippet
NA