interface DateTimeRangeConstantsInterface

Same name in other branches
  1. 11.x core/modules/datetime_range/src/DateTimeRangeConstantsInterface.php \Drupal\datetime_range\DateTimeRangeConstantsInterface

Declares constants used in the datetime range module.

@todo Convert this to an enum in 11.0.

Hierarchy

Expanded class hierarchy of DateTimeRangeConstantsInterface

All classes that implement DateTimeRangeConstantsInterface

See also

https://www.drupal.org/project/drupal/issues/3425141.

3 files declare their use of DateTimeRangeConstantsInterface
DateRangeFieldTest.php in core/modules/datetime_range/tests/src/FunctionalJavascript/DateRangeFieldTest.php
DateRangeFieldTest.php in core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
datetime_range.module in core/modules/datetime_range/datetime_range.module
Field hooks to implement a datetime field that stores a start and end date.

File

core/modules/datetime_range/src/DateTimeRangeConstantsInterface.php, line 11

Namespace

Drupal\datetime_range
View source
interface DateTimeRangeConstantsInterface {
    
    /**
     * Values for the 'from_to' formatter setting.
     */
    const BOTH = 'both';
    const START_DATE = 'start_date';
    const END_DATE = 'end_date';

}

Members

Title Sort descending Modifiers Object type Summary
DateTimeRangeConstantsInterface::BOTH constant Values for the 'from_to' formatter setting.
DateTimeRangeConstantsInterface::END_DATE constant
DateTimeRangeConstantsInterface::START_DATE constant

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.