Search for code

  1. Search 7.x for code
  2. Search 8.9.x for code
  3. Search 10.3.x for code
  4. Search 11.x for code
  5. Search main for code
  6. Other projects
Title Object type File name Summary
StorageReplaceDataWrapper::encode function core/modules/config/src/StorageReplaceDataWrapper.php Encodes configuration data into the storage-specific format.
Tags::encode function core/lib/Drupal/Component/Utility/Tags.php Encodes a tag string, taking care of special cases like commas and quotes.
TaxonomyTranslationTestTrait::$baseLangcode property core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php The langcode of the source language.
TaxonomyTranslationTestTrait::$translateToLangcode property core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php Target langcode for translation.
Test::renderEncodedMarkup function core/modules/system/tests/modules/test_page_test/src/Controller/Test.php Renders a page with encoded markup.
TestConfigNamesMapper::getInternalLangcode function core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php Gets the internal language code of this mapper, if any.
TestSiteInstallCommand::$langcode property core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php The language to install the site in.
TranslatedViewTest::$langcodes property core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php Languages to enable.
TranslationLanguageRenderer::$langcodeAlias property core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Stores the field alias of the langcode column.
TranslationLanguageRenderer::getLangcode function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Returns the language code associated with the given row.
TranslationLanguageRenderer::getLangcodeTable function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Returns the name of the table holding the "langcode" field.
TranslationManager::$defaultLangcode property core/lib/Drupal/Core/StringTranslation/TranslationManager.php The default langcode used in translations.
TranslationManager::setDefaultLangcode function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Sets the default langcode.
UmamiMultilingualInstallTest::$langcode property core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php The language code in which to install Drupal.
Unicode class core/lib/Drupal/Component/Utility/Unicode.php Provides Unicode-related conversions and operations.
Unicode.php file core/lib/Drupal/Component/Utility/Unicode.php
Unicode::check function core/lib/Drupal/Component/Utility/Unicode.php Checks for Unicode support in PHP and sets the proper settings if possible.
Unicode::convertToUtf8 function core/lib/Drupal/Component/Utility/Unicode.php Converts data to UTF-8.
Unicode::encodingFromBOM function core/lib/Drupal/Component/Utility/Unicode.php Decodes UTF byte-order mark (BOM) to the encoding name.
Unicode::getStatus function core/lib/Drupal/Component/Utility/Unicode.php Gets the current status of unicode/multibyte support on this environment.
Unicode::lcfirst function core/lib/Drupal/Component/Utility/Unicode.php Converts the first character of a UTF-8 string to lowercase.
Unicode::mimeHeaderDecode function core/lib/Drupal/Component/Utility/Unicode.php Decodes MIME/HTTP encoded header values.
Unicode::mimeHeaderEncode function core/lib/Drupal/Component/Utility/Unicode.php Encodes MIME/HTTP headers that contain incorrectly encoded characters.
Unicode::PREG_CLASS_WORD_BOUNDARY constant core/lib/Drupal/Component/Utility/Unicode.php Matches Unicode characters that are word boundaries.
Unicode::STATUS_ERROR constant core/lib/Drupal/Component/Utility/Unicode.php Indicates an error during check for PHP unicode support.
Unicode::STATUS_MULTIBYTE constant core/lib/Drupal/Component/Utility/Unicode.php Indicates that full unicode support with PHP mbstring extension is used.
Unicode::STATUS_SINGLEBYTE constant core/lib/Drupal/Component/Utility/Unicode.php Indicates that standard PHP (emulated) unicode support is being used.
Unicode::strcasecmp function core/lib/Drupal/Component/Utility/Unicode.php Compares UTF-8-encoded strings in a binary safe case-insensitive manner.
Unicode::truncate function core/lib/Drupal/Component/Utility/Unicode.php Truncates a UTF-8-encoded string safely to a number of characters.
Unicode::truncateBytes function core/lib/Drupal/Component/Utility/Unicode.php Truncates a UTF-8-encoded string safely to a number of bytes.
Unicode::ucfirst function core/lib/Drupal/Component/Utility/Unicode.php Capitalizes the first character of a UTF-8 string.
Unicode::ucwords function core/lib/Drupal/Component/Utility/Unicode.php Capitalizes the first character of each word in a UTF-8 string.
Unicode::validateUtf8 function core/lib/Drupal/Component/Utility/Unicode.php Checks whether a string is valid UTF-8.
UnicodeTest class core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Test unicode handling features implemented in Unicode component.
UnicodeTest.php file core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php
UnicodeTest.txt file core/modules/search/tests/UnicodeTest.txt
UnicodeTest::providerLcfirst function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Data provider for testLcfirst().
UnicodeTest::providerTestConvertToUtf8 function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Provides data to self::testConvertToUtf8().
UnicodeTest::providerTestMimeHeader function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Data provider for testMimeHeader().
UnicodeTest::providerTestMimeHeaderDecode function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Data provider for testMimeHeaderDecode().
UnicodeTest::providerTestTruncateBytes function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Provides data for self::testTruncateBytes().
UnicodeTest::providerTestValidateUtf8 function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Provides data for self::testValidateUtf8().
UnicodeTest::providerTruncate function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Data provider for testTruncate().
UnicodeTest::providerUcfirst function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Data provider for testUcfirst().
UnicodeTest::providerUcwords function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Data provider for testUcwords().
UnicodeTest::testConvertToUtf8 function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Tests UTF-8 conversion.
UnicodeTest::testLcfirst function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Tests multibyte lcfirst.
UnicodeTest::testMimeHeaderDecode function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Tests multibyte decoding.
UnicodeTest::testMimeHeaderEncode function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Tests multibyte encoding.
UnicodeTest::testTruncate function core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php Tests multibyte truncate.

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