Support Date/DateRange BaseFieldDefinitions

Created on 13 March 2018, about 7 years ago
Updated 5 June 2025, 3 days ago

Problem/Motivation

When the FullCalendar view looks at fields to determine if they are of type date or daterange, it checks whether they are an instanceof FieldStorageConfig, which is not true for BaseFieldDefinitions.

if ($field_definition instanceof FieldStorageConfig) {
    return in_array($field_definition->getType(), ['datetime', 'daterange']);
}

Proposed resolution

We should instead check for instanceof FieldStorageDefinitionInterface which includes BaseFieldDefinitions.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ericchew

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    The code altered by this patch has changed. If the inherent issue still exists, then feel free to re-open the issue and update the version number.

Production build 0.71.5 2024