Problem/Motivation

When the datetime module is not enabled, the module will generate an WSOD because fo the following error.

Error: Class "Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface" not found in ...\WorkflowDateTimeZoneWidget->massageFormValues() (line 140 of ...\WorkflowDateTimeZoneWidget.php).

This was hidden because datetime is a fundamental module. But is it not by default enabled in a new 'minimal' installation.

Steps to reproduce

Proposed resolution

Add dependency in module's info.yml file.

Comments

johnv created an issue. See original summary.

  • johnv committed f29b23e9 on 2.1.x
    Issue #3619432: Add dependency on datetime module
    
johnv’s picture

Version: 2.1.x-dev » 2.1.10
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.