Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal