interface DateTimeRangeConstantsInterface

Same name and namespace in other branches
  1. 10 core/modules/datetime_range/src/DateTimeRangeConstantsInterface.php \Drupal\datetime_range\DateTimeRangeConstantsInterface

Declares constants used in the datetime range module.

Hierarchy

Expanded class hierarchy of DateTimeRangeConstantsInterface

All classes that implement DateTimeRangeConstantsInterface

Deprecated

in drupal:11.2.0 and is removed from drupal:12.0.0. Use enum DateTimeRangeDisplayOptions instead.

See also

https://www.drupal.org/node/3495241

File

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

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.