Search for format

  1. Search 7.x for format
  2. Search 9.5.x for format
  3. Search 8.9.x for format
  4. Search 10.3.x for format
  5. Other projects
Title Object type File name Summary
LinkFormatter::$pathValidator property core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php The path validator service.
LinkFormatter::buildUrl function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Builds the \Drupal\Core\Url object for a link field item.
LinkFormatter::create function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Creates an instance of the plugin.
LinkFormatter::defaultSettings function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Defines the default settings for this plugin.
LinkFormatter::settingsForm function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Returns a form to configure settings for the formatter.
LinkFormatter::settingsSummary function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Returns a short summary for the current formatter settings.
LinkFormatter::viewElements function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Builds a renderable array for a field value.
LinkFormatter::__construct function core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php Constructs a new LinkFormatter.
LinkFormatterDisplayTest class core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Tests the default 'link' field formatter.
LinkFormatterDisplayTest.php file core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php
LinkFormatterDisplayTest::$modules property core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Modules to install.
LinkFormatterDisplayTest::getTestCases function core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php
LinkFormatterDisplayTest::setUp function core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Set the default field storage backend for fields created during tests.
LinkFormatterDisplayTest::testLinkFormatter function core/modules/link/tests/src/Kernel/LinkFormatterDisplayTest.php Tests that links are rendered correctly.
LinkFormatterTest class core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests the Field Formatter for the link field type.
LinkFormatterTest.php file core/modules/link/tests/src/Unit/LinkFormatterTest.php
LinkFormatterTest::testFormatterLinkItem function core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests when LinkItem::getUrl returns a functional URL.
LinkFormatterTest::testFormatterLinkItemUrlMalformed function core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests when LinkItem::getUrl with malformed URL renders empty link.
LinkFormatterTest::testFormatterLinkItemUrlUnexpectedException function core/modules/link/tests/src/Unit/LinkFormatterTest.php Tests when LinkItem::getUrl throws an unexpected exception.
LinkSeparateFormatter class core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php Plugin implementation of the 'link_separate' formatter.
LinkSeparateFormatter.php file core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php
LinkSeparateFormatter::defaultSettings function core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php Defines the default settings for this plugin.
LinkSeparateFormatter::viewElements function core/modules/link/src/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php Builds a renderable array for a field value.
LinkSeparateFormatterDisplayTest class core/modules/link/tests/src/Kernel/LinkSeparateFormatterDisplayTest.php Tests the 'link_separate' field formatter.
LinkSeparateFormatterDisplayTest.php file core/modules/link/tests/src/Kernel/LinkSeparateFormatterDisplayTest.php
LinkSeparateFormatterDisplayTest::$modules property core/modules/link/tests/src/Kernel/LinkSeparateFormatterDisplayTest.php Modules to install.
LinkSeparateFormatterDisplayTest::getTestCases function core/modules/link/tests/src/Kernel/LinkSeparateFormatterDisplayTest.php
LinkSeparateFormatterDisplayTest::setUp function core/modules/link/tests/src/Kernel/LinkSeparateFormatterDisplayTest.php Set the default field storage backend for fields created during tests.
LinkSeparateFormatterDisplayTest::testLinkSeparateFormatter function core/modules/link/tests/src/Kernel/LinkSeparateFormatterDisplayTest.php Tests that links are rendered correctly.
LocalePluralFormatTest class core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Tests plural handling for various languages.
LocalePluralFormatTest.php file core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php
LocalePluralFormatTest::$adminUser property core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php An admin user.
LocalePluralFormatTest::$defaultTheme property core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php The theme to install as the default for testing.
LocalePluralFormatTest::$modules property core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Modules to install.
LocalePluralFormatTest::getPoFileWithBrokenPlural function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Returns a .po file with a broken plural formula.
LocalePluralFormatTest::getPoFileWithComplexPlural function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Returns a .po file with a complex plural formula.
LocalePluralFormatTest::getPoFileWithMissingPlural function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Returns a .po file with a missing plural formula.
LocalePluralFormatTest::getPoFileWithSimplePlural function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Returns a .po file with a simple plural formula.
LocalePluralFormatTest::importPoFile function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Imports a standalone .po file in a given language.
LocalePluralFormatTest::setUp function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php
LocalePluralFormatTest::testGetPluralFormat function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Tests locale_get_plural() and \Drupal::translation()->formatPlural().
LocalePluralFormatTest::testPluralEditDateFormatter function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Tests plural editing of DateFormatter strings.
LocalePluralFormatTest::testPluralEditExport function core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php Tests plural editing and export functionality.
MailFormatHelper class core/lib/Drupal/Core/Mail/MailFormatHelper.php Defines a class containing utility methods for formatting mail messages.
MailFormatHelper.php file core/lib/Drupal/Core/Mail/MailFormatHelper.php
MailFormatHelper::$regexp property core/lib/Drupal/Core/Mail/MailFormatHelper.php Quoted regex expression based on base path.
MailFormatHelper::$supportedTags property core/lib/Drupal/Core/Mail/MailFormatHelper.php Array of tags supported.
MailFormatHelper::$urls property core/lib/Drupal/Core/Mail/MailFormatHelper.php Internal array of URLs replaced with tokens.
MailFormatHelper::htmlToMailUrls function core/lib/Drupal/Core/Mail/MailFormatHelper.php Keeps track of URLs and replaces them with placeholder tokens.
MailFormatHelper::htmlToText function core/lib/Drupal/Core/Mail/MailFormatHelper.php Transforms an HTML string into plain text, preserving its structure.

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