Search for getFormats

  1. Search 7.x for getFormats
  2. Search 9.5.x for getFormats
  3. Search 8.9.x for getFormats
  4. Search 10.3.x for getFormats
  5. Search main for getFormats
  6. Other projects
Title Object type File name Summary
DateTimeFormatterBase::getFormatSettings function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Gets a settings array suitable for DrupalDateTime::format().
Endpoint::getFormats function core/modules/media/src/OEmbed/Endpoint.php Returns list of supported formats.
FilterFormat::getFormatsAsOptions function core/modules/filter/src/Plugin/DataType/FilterFormat.php Returns a list of filter format config entity labels keyed by their ID.
FilterFormatRepository::getFormatsByRole function core/modules/filter/src/FilterFormatRepository.php
FilterFormatRepository::getFormatsForAccount function core/modules/filter/src/FilterFormatRepository.php
FilterFormatRepositoryInterface::getFormatsByRole function core/modules/filter/src/FilterFormatRepositoryInterface.php Returns a list of text formats that are allowed for a given role.
FilterFormatRepositoryInterface::getFormatsForAccount function core/modules/filter/src/FilterFormatRepositoryInterface.php Returns only those formats which the specified account can use.
FilterFormatRepositoryTest::testGetFormatsByRole function core/modules/filter/tests/src/Kernel/FilterFormatRepositoryTest.php @legacy-covers ::getFormatsByRole
FilterFormatRepositoryTest::testGetFormatsForAccount function core/modules/filter/tests/src/Kernel/FilterFormatRepositoryTest.php @legacy-covers ::getFormatsForAccount
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::getFormats function core/modules/rest/src/Plugin/views/style/Serializer.php Gets a list of all available formats that can be requested.

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