DateTimeRangeConstantsInterface.php

Same filename in other branches
  1. 11.x core/modules/datetime_range/src/DateTimeRangeConstantsInterface.php

Namespace

Drupal\datetime_range

File

core/modules/datetime_range/src/DateTimeRangeConstantsInterface.php

View source
<?php

namespace Drupal\datetime_range;


/**
 * Declares constants used in the datetime range module.
 *
 * @todo Convert this to an enum in 11.0.
 * @see https://www.drupal.org/project/drupal/issues/3425141.
 */
interface DateTimeRangeConstantsInterface {
    
    /**
     * Values for the 'from_to' formatter setting.
     */
    const BOTH = 'both';
    const START_DATE = 'start_date';
    const END_DATE = 'end_date';

}

Interfaces

Title Deprecated Summary
DateTimeRangeConstantsInterface Declares constants used in the datetime range module.

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