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
filter_formats_reset function core/modules/filter/filter.module Resets the text format caches.
filter_get_formats_by_role function core/modules/filter/filter.module Retrieves a list of text formats that are allowed for a given role.
HttpExceptionSubscriberBase::getHandledFormats function core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php Specifies the request formats this subscriber will respond to.
LegacyCommonTest::testFormatSizeDeprecation function core/tests/Drupal/KernelTests/Core/Common/LegacyCommonTest.php Tests deprecation of the format_size() function.
MigrateDateFormatTest::testDateFormats function core/modules/system/tests/src/Kernel/Migrate/d6/MigrateDateFormatTest.php Tests the Drupal 6 date formats to Drupal 8 migration.
NegotiationMiddleware::$formats property core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php Contains a hashmap of format as key and mimetype as value.
PoItem::formatSingular function core/lib/Drupal/Component/Gettext/PoItem.php Formats a singular translation.
PoItem::formatString function core/lib/Drupal/Component/Gettext/PoItem.php Formats a string for output on multiple lines.
RequestFormatRouteFilter::getAvailableFormats function core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php Gets the set of formats across all routes in the collection.
RequestFormatRouteFilterTest::testNoRouteFoundWhenNoRequestFormatAndSingleRouteWithMultipleFormats function core/tests/Drupal/Tests/Core/Routing/RequestFormatRouteFilterTest.php @covers ::filter
ResourceBase::$serializerFormats property core/modules/rest/src/Plugin/ResourceBase.php The available serialization formats.
ResourceTest::testFormats function core/modules/rest/tests/src/Functional/ResourceTest.php Tests that a resource without formats cannot be enabled.
RestResourceConfig::getFormats function core/modules/rest/src/Entity/RestResourceConfig.php Retrieves a list of supported response formats.
RestResourceConfig::getFormatsForMethodGranularity function core/modules/rest/src/Entity/RestResourceConfig.php Retrieves a list of supported response formats.
RestResourceConfigInterface::getFormats function core/modules/rest/src/RestResourceConfigInterface.php Retrieves a list of supported response formats.
Serializer::$formats property core/modules/rest/src/Plugin/views/style/Serializer.php The available serialization formats.
Serializer::getFormats function core/modules/rest/src/Plugin/views/style/Serializer.php Gets a list of all available formats that can be requested.
TextFieldTest::testTextfieldWidgetsAllowedFormats function core/modules/text/tests/src/Functional/TextFieldTest.php Test widgets for fields with selected allowed formats.
TextItemBase::validateAllowedFormats function core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php Render API callback: Processes the allowed formats value.
TimestampNormalizer::$allowedFormats property core/modules/serialization/src/Normalizer/TimestampNormalizer.php
TimestampNormalizerTest::providerTestDenormalizeValidFormats function core/modules/serialization/tests/src/Unit/Normalizer/TimestampNormalizerTest.php Data provider for testDenormalizeValidFormats.
TimestampNormalizerTest::testDenormalizeValidFormats function core/modules/serialization/tests/src/Unit/Normalizer/TimestampNormalizerTest.php Tests the denormalize function with good data.
UserAuthenticationController::$serializerFormats property core/modules/user/src/Controller/UserAuthenticationController.php The available serialization formats.
UserRouteAlterSubscriber::$serializerFormats property core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php The available serialization formats.
UserRouteAlterSubscriber::onRoutingAlterAddFormats function core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php Adds supported formats to the user authentication HTTP routes.

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