Search for formats

  1. Search 7.x for formats
  2. Search 9.5.x for formats
  3. Search 8.9.x for formats
  4. Search 10.3.x for formats
  5. Other projects
Title Object type File name Summary
AccessDeniedSubscriber::getHandledFormats function core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php Specifies the request formats this subscriber will respond to.
Boolean::$formats property core/modules/views/src/Plugin/views/field/Boolean.php The allowed formats.
BooleanFormatter::getOutputFormats function core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/BooleanFormatter.php Gets the available format options.
ByteSizeMarkupTest::providerTestCommonFormatSize function core/tests/Drupal/Tests/Core/StringTranslation/ByteSizeMarkupTest.php Provides a list of byte size to test.
ByteSizeMarkupTest::testCommonFormatSize function core/tests/Drupal/Tests/Core/StringTranslation/ByteSizeMarkupTest.php @covers ::create
@dataProvider providerTestCommonFormatSize
ConfigTranslationListUiTest::doFormatsListTest function core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php Tests the formats listing for the translate operation.
CsrfExceptionSubscriber::getHandledFormats function core/lib/Drupal/Core/EventSubscriber/CsrfExceptionSubscriber.php Specifies the request formats this subscriber will respond to.
d6_date_formats.yml file core/modules/system/migrations/d6_date_formats.yml core/modules/system/migrations/d6_date_formats.yml
Date::$dateFormatStorage property core/modules/views/src/Plugin/views/field/Date.php The date format storage.
DateFormatFormBase::$dateFormatStorage property core/modules/system/src/Form/DateFormatFormBase.php The date format storage.
DateFormatsLockedTest class core/modules/system/tests/src/Functional/System/DateFormatsLockedTest.php Tests the locked functionality of date formats.
DateFormatsLockedTest.php file core/modules/system/tests/src/Functional/System/DateFormatsLockedTest.php
DateFormatsLockedTest::$defaultTheme property core/modules/system/tests/src/Functional/System/DateFormatsLockedTest.php The theme to install as the default for testing.
DateFormatsLockedTest::testDateLocking function core/modules/system/tests/src/Functional/System/DateFormatsLockedTest.php Tests attempts at listing, editing, and deleting locked date formats.
DateFormatsMachineNameTest class core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php Tests validity of date format machine names.
DateFormatsMachineNameTest.php file core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php
DateFormatsMachineNameTest::$defaultTheme property core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php The theme to install as the default for testing.
DateFormatsMachineNameTest::setUp function core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php
DateFormatsMachineNameTest::testDateFormatsMachineNameAllowedValues function core/modules/system/tests/src/Functional/System/DateFormatsMachineNameTest.php Tests that date formats cannot be created with invalid machine names.
DateFormatter::$dateFormats property core/lib/Drupal/Core/Datetime/DateFormatter.php
DateFormatter::$dateFormatStorage property core/lib/Drupal/Core/Datetime/DateFormatter.php The date format storage.
DateFormatter::getSampleDateFormats function core/lib/Drupal/Core/Datetime/DateFormatter.php Provides values for all date formatting characters for a given timestamp.
DateFormatterInterface::getSampleDateFormats function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Provides values for all date formatting characters for a given timestamp.
DateTest::testGetSampleDateFormats function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the getSampleDateFormats method.
DateTimeFormatterBase::$dateFormatStorage property core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php The date format entity storage.
DateTimeFormatterBase::getFormatSettings function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Gets a settings array suitable for DrupalDateTime::format().
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.
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.
DefaultExceptionHtmlSubscriber::getHandledFormats function core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
DefaultExceptionSubscriber::$serializerFormats property core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php The available serialization formats.
DefaultExceptionSubscriber::getHandledFormats function core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php Specifies the request formats this subscriber will respond to.
DefaultExceptionSubscriber::getHandledFormats function core/modules/jsonapi/src/EventSubscriber/DefaultExceptionSubscriber.php Specifies the request formats this subscriber will respond to.
EarlyFormatSetter class core/modules/jsonapi/src/Routing/EarlyFormatSetter.php Sets the 'api_json' format for requests to JSON:API resources.
EarlyFormatSetter.php file core/modules/jsonapi/src/Routing/EarlyFormatSetter.php
EarlyFormatSetter::filter function core/modules/jsonapi/src/Routing/EarlyFormatSetter.php Filters the route collection against a request.
Endpoint::$formats property core/modules/media/src/OEmbed/Endpoint.php List of supported formats. Only 'json' and 'xml' are allowed.
Endpoint::getFormats function core/modules/media/src/OEmbed/Endpoint.php Returns list of supported formats.
ExceptionJsonSubscriber::getHandledFormats function core/lib/Drupal/Core/EventSubscriber/ExceptionJsonSubscriber.php Specifies the request formats this subscriber will respond to.
Fast404ExceptionHtmlSubscriber::getHandledFormats function core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php Specifies the request formats this subscriber will respond to.
FilterDefaultFormatTest::testDefaultTextFormats function core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php Tests if the default text format is accessible to users.
FilterUninstallValidator::getEnabledFilterFormats function core/modules/filter/src/FilterUninstallValidator.php Returns all enabled filter formats.
FilterUninstallValidatorTest::testValidateNoFormats function core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php @covers ::validate
FilterUninstallValidatorTest::testValidateNoMatchingFormats function core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php @covers ::validate
filter_formats function core/modules/filter/filter.module Retrieves a list of enabled text formats, ordered by weight.

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