Add option to show only start or end date in the DateTime Range custom formatter

Created on 4 July 2024, over 1 year ago
Updated 13 September 2024, about 1 year ago

Problem/Motivation

Since Drupal 10.3, the core DateTimeRangeFormatter has an option to show only the start or the end date of a DateTimeRange field. This option should be available in this module's formatter as well.

Proposed resolution

In OptionalEndDateDateTimeRangeTrait::viewElements(), use the new method renderStartEndWithIsoAttribute() instead of rendering the date ourselves.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany mrshowerman Munich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024