Search for format

  1. Search 7.x for format
  2. Search 8.9.x for format
  3. Search 10.3.x for format
  4. Search 11.x for format
  5. Other projects
Title Object type File name Summary
DateTest::testFormatInterval function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the formatInterval method.
DateTest::testFormatIntervalZeroSecond function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the formatInterval method for 0 second.
DateTest::testFormattedDateDiff function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests FormattedDateDiff.
DateTest::testFormatTimeDiffSince function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the formatTimeDiffSince method.
DateTest::testFormatTimeDiffUntil function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the formatTimeDiffUntil method.
DateTest::testGetSampleDateFormats function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the getSampleDateFormats method.
DateTestBase::$dateFormatter property core/modules/datetime/tests/src/Functional/DateTestBase.php The date formatter service.
Datetime::formatExample function core/lib/Drupal/Core/Datetime/Element/Datetime.php Creates an example for a date format.
Datetime::getHtml5DateFormat function core/lib/Drupal/Core/Datetime/Element/Datetime.php Retrieves the right format for an HTML5 date element.
Datetime::getHtml5TimeFormat function core/lib/Drupal/Core/Datetime/Element/Datetime.php Retrieves the right format for an HTML5 time element.
DateTimeCustomFormatter class core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php Plugin implementation of the 'Custom' formatter for 'datetime' fields.
DateTimeCustomFormatter.php file core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php
DateTimeCustomFormatter::defaultSettings function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php Defines the default settings for this plugin.
DateTimeCustomFormatter::formatDate function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php Creates a formatted date value as a string.
DateTimeCustomFormatter::settingsForm function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php Returns a form to configure settings for the formatter.
DateTimeCustomFormatter::settingsSummary function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php Returns a short summary for the current formatter settings.
DateTimeCustomFormatter::viewElements function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php Builds a renderable array for a field value.
DateTimeDefaultFormatter class core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeDefaultFormatter.php Plugin implementation of the 'Default' formatter for 'datetime' fields.
DateTimeDefaultFormatter.php file core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeDefaultFormatter.php
DateTimeDefaultFormatter::defaultSettings function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeDefaultFormatter.php Defines the default settings for this plugin.
DateTimeDefaultFormatter::formatDate function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeDefaultFormatter.php Creates a formatted date value as a string.
DateTimeDefaultFormatter::settingsForm function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeDefaultFormatter.php Returns a form to configure settings for the formatter.
DateTimeDefaultFormatter::settingsSummary function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeDefaultFormatter.php Returns a short summary for the current formatter settings.
DateTimeFieldRdfaTest::testDefaultFormatter function core/modules/rdf/tests/src/Kernel/Field/DateTimeFieldRdfaTest.php Tests the default formatter.
DateTimeFormatConstraint class core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php Validation constraint for DateTime items to ensure the format is correct.
DateTimeFormatConstraint.php file core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php
DateTimeFormatConstraint::$badFormat property core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php Message for when the value isn't in the proper format.
DateTimeFormatConstraint::$badType property core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php Message for when the value isn't a string.
DateTimeFormatConstraint::$badValue property core/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraint.php Message for when the value did not parse properly.
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.

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