Search for format

  1. Search 7.x for format
  2. Search 9.5.x for format
  3. Search 8.9.x for format
  4. Search 10.3.x for format
  5. Other projects
Title Object type File name Summary
DateTimeFormatConstraintValidator class core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraintValidator.php Constraint validator for DateTime items to ensure the format is correct.
DateTimeFormatConstraintValidator.php file core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraintValidator.php
DateTimeFormatConstraintValidator::validate function core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraintValidator.php
DateTimeFormatterBase class core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Base class for 'DateTime Field formatter' plugin implementations.
DateTimeFormatterBase.php file core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php
DateTimeFormatterBase::$dateFormatStorage property core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php The date format entity storage.
DateTimeFormatterBase::$dateFormatter property core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php The date formatter service.
DateTimeFormatterBase::buildDate function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Creates a render array from a date object.
DateTimeFormatterBase::buildDateWithIsoAttribute function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Creates a render array from a date object with ISO date attribute.
DateTimeFormatterBase::create function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Creates an instance of the plugin.
DateTimeFormatterBase::defaultSettings function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Defines the default settings for this plugin.
DateTimeFormatterBase::formatDate function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Creates a formatted date value as a string.
DateTimeFormatterBase::getFormatSettings function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Gets a settings array suitable for DrupalDateTime::format().
DateTimeFormatterBase::setTimeZone function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Sets the proper time zone on a DrupalDateTime object for the current user.
DateTimeFormatterBase::settingsForm function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Returns a form to configure settings for the formatter.
DateTimeFormatterBase::settingsSummary function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Returns a short summary for the current formatter settings.
DateTimeFormatterBase::viewElements function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Builds a renderable array for a field value.
DateTimeFormatterBase::__construct function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Constructs a new DateTimeDefaultFormatter.
DateTimeIso8601Normalizer::$allowedFormats property core/modules/serialization/src/Normalizer/DateTimeIso8601Normalizer.php Allowed datetime formats for the denormalizer.
DateTimeIso8601NormalizerTest::providerTestDenormalizeValidFormats function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php Data provider for testDenormalizeValidFormats.
DateTimeIso8601NormalizerTest::testDenormalizeValidFormats function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php Tests the denormalize function with good data.
DateTimeItemInterface::DATETIME_STORAGE_FORMAT constant core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php Defines the format that date and time should be stored in.
DateTimeItemInterface::DATE_STORAGE_FORMAT constant core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php Defines the format that dates should be stored in.
DateTimeNormalizer::$allowedFormats property core/modules/serialization/src/Normalizer/DateTimeNormalizer.php Allowed datetime formats for the denormalizer.
DateTimeNormalizerTest::providerTestDenormalizeUserFormats function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php Data provider for testDenormalizeUserFormats.
DateTimeNormalizerTest::providerTestDenormalizeValidFormats function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php Data provider for testDenormalizeValidFormats.
DateTimeNormalizerTest::testDenormalizeUserFormats function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php Tests the denormalize function with a user supplied format.
DateTimeNormalizerTest::testDenormalizeValidFormats function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php Tests the denormalize function with good data.
DateTimePlainFormatter class core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimePlainFormatter.php Plugin implementation of the 'Plain' formatter for 'datetime' fields.
DateTimePlainFormatter.php file core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimePlainFormatter.php
DateTimePlainFormatter::formatDate function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimePlainFormatter.php Creates a formatted date value as a string.
DateTimePlainFormatter::viewElements function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimePlainFormatter.php Builds a renderable array for a field value.
DateTimePlus::$inputFormatAdjusted property core/lib/Drupal/Component/Datetime/DateTimePlus.php The prepared format, if provided.
DateTimePlus::$inputFormatRaw property core/lib/Drupal/Component/Datetime/DateTimePlus.php The value of the format passed to the constructor.
DateTimePlus::createFromFormat function core/lib/Drupal/Component/Datetime/DateTimePlus.php Creates a date object from an input format.
DateTimePlus::FORMAT constant core/lib/Drupal/Component/Datetime/DateTimePlus.php
DateTimePlus::format function core/lib/Drupal/Component/Datetime/DateTimePlus.php Formats the date for display.
DateTimePlus::prepareFormat function core/lib/Drupal/Component/Datetime/DateTimePlus.php Prepares the input format value.
DateTimePlusTest::providerTestDateFormat function core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php Provides data for testDateFormats.
DateTimePlusTest::testDateFormat function core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php Tests creating dates from format strings.
DateTimePlusTest::testValidateFormat function core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php Tests the $settings['validate_format'] parameter in ::createFromFormat().
DateTimeTest::testDateFormatConfiguration function core/modules/system/tests/src/Functional/System/DateTimeTest.php Tests date format configuration.
DateTimeTimeAgoFormatter class core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeTimeAgoFormatter.php Plugin implementation of the 'Time ago' formatter for 'datetime' fields.
DateTimeTimeAgoFormatter.php file core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeTimeAgoFormatter.php
DateTimeTimeAgoFormatter::formatDate function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeTimeAgoFormatter.php Formats a date/time as a time interval.
DateTimeTimeAgoFormatter::viewElements function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeTimeAgoFormatter.php Builds a renderable array for a field value.
DateTimeTimeAgoFormatterTest class core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php Tests the functionality of DateTimeTimeAgoFormatter field formatter.
DateTimeTimeAgoFormatterTest.php file core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php
DateTimeTimeAgoFormatterTest::$defaultTheme property core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php The theme to install as the default for testing.
DateTimeTimeAgoFormatterTest::$displayOptions property core/modules/datetime/tests/src/Functional/DateTimeTimeAgoFormatterTest.php An array of field formatter display options.

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