Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 10.3.x for all
  4. Search 11.x for all
  5. Other projects
Title Object type File name Summary
DateRangeFieldTest::testDateRangeField function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Tests date field functionality.
DateRangeFieldTest::testDateStorageSettings function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Tests that 'Date' field storage setting form is disabled if field has data.
DateRangeFieldTest::testDatetimeRangeField function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Tests date and time field.
DateRangeFieldTest::testDefaultValue function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Test default value functionality.
DateRangeFieldTest::testInvalidField function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Test that invalid values are caught and marked as invalid.
DateRangeItem class core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php Plugin implementation of the 'daterange' field type.
DateRangeItem.php file core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
DateRangeItem::DATETIME_TYPE_ALLDAY constant core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php Value for the 'datetime_type' setting: store a date and time.
DateRangeItem::generateSampleValue function core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
DateRangeItem::isEmpty function core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
DateRangeItem::onChange function core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
DateRangeItem::propertyDefinitions function core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
DateRangeItem::schema function core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
DateRangeItem::storageSettingsForm function core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
DateRangeItemTest class core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php Test datetime range field type via API.
DateRangeItemTest.php file core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php
DateRangeItemTest::$field property core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php The field used in this test class.
DateRangeItemTest::$fieldStorage property core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php A field storage to use in this test class.
DateRangeItemTest::$modules property core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php
DateRangeItemTest::setUp function core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php
DateRangeItemTest::testDateOnly function core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php Tests the field configured for date-only.
DateRangePlainFormatter class core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangePlainFormatter.php Plugin implementation of the 'Plain' formatter for 'daterange' fields.
DateRangePlainFormatter.php file core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangePlainFormatter.php
DateRangePlainFormatter::defaultSettings function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangePlainFormatter.php
DateRangePlainFormatter::settingsForm function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangePlainFormatter.php
DateRangePlainFormatter::settingsSummary function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangePlainFormatter.php
DateRangePlainFormatter::viewElements function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangePlainFormatter.php
DateRangeWidgetBase class core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php Base class for the 'daterange_*' widgets.
DateRangeWidgetBase.php file core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php
DateRangeWidgetBase::formElement function core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php
DateRangeWidgetBase::massageFormValues function core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php
DateRangeWidgetBase::validateStartEnd function core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php #element_validate callback to ensure that the start date <= the end date.
DateSqlInterface interface core/modules/views/src/Plugin/views/query/DateSqlInterface.php Defines an interface for handling date queries with SQL.
DateSqlInterface.php file core/modules/views/src/Plugin/views/query/DateSqlInterface.php
DateSqlInterface::getDateField function core/modules/views/src/Plugin/views/query/DateSqlInterface.php Returns a native database expression for a given field.
DateSqlInterface::getDateFormat function core/modules/views/src/Plugin/views/query/DateSqlInterface.php Creates a native database date formatting.
DateSqlInterface::setFieldTimezoneOffset function core/modules/views/src/Plugin/views/query/DateSqlInterface.php Applies the given offset to the given field.
DateSqlInterface::setTimezoneOffset function core/modules/views/src/Plugin/views/query/DateSqlInterface.php Set the database to the given timezone.
DateTest class core/tests/Drupal/Tests/Core/Datetime/DateTest.php @coversDefaultClass \Drupal\Core\Datetime\DateFormatter[[api-linebreak]]
@group Datetime
DateTest.php file core/tests/Drupal/Tests/Core/Datetime/DateTest.php
DateTest::$dateFormatter property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The mocked date formatter class.
DateTest::$dateFormatterStub property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The date formatter class where methods can be stubbed.
DateTest::$entityTypeManager property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The mocked entity manager.
DateTest::$languageManager property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The mocked language manager.
DateTest::$requestStack property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The mocked string translation.
DateTest::$stringTranslation property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The mocked string translation.
DateTest::createTimestamp function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Creates a UNIX timestamp given a date and time string in the format
year-month-day hour:minute:seconds (e.g. 2013-12-11 10:09:08).
DateTest::providerTestFormatDiff function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Data provider for testformatDiff().
DateTest::providerTestFormatInterval function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Provides some test data for the format interval test.
DateTest::setUp function core/tests/Drupal/Tests/Core/Datetime/DateTest.php

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