| 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 |
Instantiates a new instance of the implementing class using autowiring. |
| 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. |
| DatetimeFormElementTest |
class |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Tests static callbacks returns and form submission with datetime elements. |
| DatetimeFormElementTest.php |
file |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
|
| DatetimeFormElementTest::$formBuilder |
property |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Form builder service. |
| DatetimeFormElementTest::buildForm |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Form constructor. |
| DatetimeFormElementTest::getFormId |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Returns a unique string identifying the form. |
| DatetimeFormElementTest::setUp |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
|
| DatetimeFormElementTest::submitForm |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Form submission handler. |
| DatetimeFormElementTest::testDatetimeLocalProcessDatetime |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Checks expected values are returned by ::processDatetime(). |
| DatetimeFormElementTest::testDatetimeLocalValueCallback |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Checks expected values are returned by ::valueCallback(). |
| DatetimeFormElementTest::testDatetimeTimeOnlyValueCallback |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Checks expected values are returned by ::valueCallback(). |
| DatetimeFormElementTest::testNoErrorMetOnFormSubmit |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Checks we have no errors on form submit. |
| DatetimeFormElementTest::validateForm |
function |
core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php |
Form validation handler. |
| DateTimeFormInjectionTest |
class |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Tests serializing a form with an injected datetime instance. |
| DateTimeFormInjectionTest.php |
file |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
|
| DateTimeFormInjectionTest::$modules |
property |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Modules to install. |
| DateTimeFormInjectionTest::buildForm |
function |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Form constructor. |
| DateTimeFormInjectionTest::getFormId |
function |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Returns a unique string identifying the form. |
| DateTimeFormInjectionTest::process |
function |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Process callback. |
| DateTimeFormInjectionTest::submitForm |
function |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Form submission handler. |
| DateTimeFormInjectionTest::testDatetimeSerialization |
function |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Tests custom string injection serialization. |
| DateTimeFormInjectionTest::validateForm |
function |
core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php |
Form validation handler. |
| 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. |
| DateTimeItem::storageSettingsForm |
function |
core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php |
Returns a form for the storage-level settings. |
| 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. |