Search for string

  1. Search 7.x for string
  2. Search 8.9.x for string
  3. Search 10.3.x for string
  4. Search 11.x for string
  5. Other projects
Title Object type File name Summary
ListStringItem::allowedValuesDescription function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Provides the field type specific allowed values form element #description.
ListStringItem::castAllowedValue function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Converts a value to the correct type.
ListStringItem::propertyDefinitions function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Defines field item properties.
ListStringItem::schema function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Returns the schema for the field.
ListStringItem::validateAllowedValue function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Checks whether a candidate allowed value is valid.
LocalActionDefaultTest::$stringTranslation property core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php The mocked translator.
locale.translate_strings.html.twig file core/modules/help_topics/help_topics/locale.translate_strings.html.twig ---
label: 'Translating user interface text'
related:
- core.translations
- locale.import
- locale.translation_status
- language.add
---
{% set translate_text %}{% trans %}User interface translation{% endtrans %}{% endset %}
{% set…
LocaleConfigManager::getStringNames function core/modules/locale/src/LocaleConfigManager.php Gets configuration names associated with strings.
LocaleConfigManager::getStringTranslation function core/modules/locale/src/LocaleConfigManager.php Get the translation object for the given source/context and language.
LocaleConfigManager::translateString function core/modules/locale/src/LocaleConfigManager.php Translates string using the localization system.
LocaleConfigManagerTest::testGetStringTranslation function core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php Tests getStringTranslation().
LocaleConfigSubscriberTest::$stringStorage property core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php The string storage used in this test.
LocaleExportTest::getUntranslatedString function core/modules/locale/tests/src/Functional/LocaleExportTest.php Returns a .po file fragment with an untranslated string.
LocaleLookup::$stringStorage property core/modules/locale/src/LocaleLookup.php The locale storage.
LocaleNonInteractiveDevInstallTest::getVersionStringToTest function core/modules/locale/tests/src/Functional/LocaleNonInteractiveDevInstallTest.php Gets the version string to use in the translation file.
LocaleNonInteractiveInstallTest::getVersionStringToTest function core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php Gets the version string to use in the translation file.
LocaleStringIsSafeTest class core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php Tests locale translation safe string handling.
LocaleStringIsSafeTest.php file core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php
LocaleStringIsSafeTest::$modules property core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php Modules to enable.
LocaleStringIsSafeTest::testLocaleStringIsSafe function core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php Tests for locale_string_is_safe().
LocaleStringIsSafeTest::testLocalizedTokenizedString function core/modules/locale/tests/src/Kernel/LocaleStringIsSafeTest.php Tests if a translated and tokenized string is properly escaped by Twig.
LocaleStringTest class core/modules/locale/tests/src/Kernel/LocaleStringTest.php Tests the locale string storage, string objects and data API.
LocaleStringTest.php file core/modules/locale/tests/src/Kernel/LocaleStringTest.php
LocaleStringTest::$modules property core/modules/locale/tests/src/Kernel/LocaleStringTest.php Modules to enable.
LocaleStringTest::$storage property core/modules/locale/tests/src/Kernel/LocaleStringTest.php The locale storage.
LocaleStringTest::buildSourceString function core/modules/locale/tests/src/Kernel/LocaleStringTest.php Creates random source string object.
LocaleStringTest::createAllTranslations function core/modules/locale/tests/src/Kernel/LocaleStringTest.php Creates translations for source string and all languages.
LocaleStringTest::createTranslation function core/modules/locale/tests/src/Kernel/LocaleStringTest.php Creates single translation for source string.
LocaleStringTest::setUp function core/modules/locale/tests/src/Kernel/LocaleStringTest.php
LocaleStringTest::testStringCrudApi function core/modules/locale/tests/src/Kernel/LocaleStringTest.php Tests CRUD API.
LocaleStringTest::testStringSearchApi function core/modules/locale/tests/src/Kernel/LocaleStringTest.php Tests Search API loading multiple objects.
LocaleTranslateStringTourTest class core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php Tests the Translate Interface tour.
LocaleTranslateStringTourTest.php file core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php
LocaleTranslateStringTourTest::$adminUser property core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php An admin user with administrative permissions to translate.
LocaleTranslateStringTourTest::$defaultTheme property core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php The theme to install as the default for testing.
LocaleTranslateStringTourTest::$modules property core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php Modules to enable.
LocaleTranslateStringTourTest::setUp function core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php
LocaleTranslateStringTourTest::testTranslateStringTourTips function core/modules/locale/tests/src/Functional/LocaleTranslateStringTourTest.php Tests locale tour tip availability.
LocaleTranslation::getStringTranslation function core/modules/locale/src/LocaleTranslation.php Retrieves English string to given language.
LocaleTranslationUiTest::testStringSearch function core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php Tests translation search form.
LocaleTranslationUiTest::testStringTranslation function core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php Adds a language and tests string translation by users with the appropriate permissions.
LocaleTranslationUiTest::testStringValidation function core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php Tests the validation of the translation input.
LocaleTranslationUiTest::testUICustomizedStrings function core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php Tests that only changed strings are saved customized when edited.
LOCALE_JS_STRING constant core/modules/locale/locale.module Regular expression pattern used to localize JavaScript strings.
locale_string_is_safe function core/modules/locale/locale.module Check that a string is safe to be added or imported as a translation.
LocalTaskDefaultTest::$stringTranslation property core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php The mocked translator.
Map::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php Returns a string representation of the data.
MarkupInterface::__toString function core/lib/Drupal/Component/Render/MarkupInterface.php Returns markup.
MarkupTrait::$string property core/lib/Drupal/Component/Render/MarkupTrait.php The safe string.
MarkupTrait::__toString function core/lib/Drupal/Component/Render/MarkupTrait.php Returns the string version of the Markup object.

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