Search for string

  1. Search 7.x for string
  2. Search 9.5.x for string
  3. Search 8.9.x for string
  4. Search 11.x for string
  5. Search main for string
  6. Other projects
Title Object type File name Summary
Inspector::assertAllStrings function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are strings.
Inspector::assertStringable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts argument is a string or an object castable to a string.
InspectorTest::providerTestAssertAllStrings function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
InspectorTest::testAssertAllStringable function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strings or objects with __toString().
InspectorTest::testAssertAllStrings function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strings.
InstallerTranslationMultipleLanguageNonInteractiveTest::verifyImportedStringsTranslated function core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php Helper function to verify that the expected strings are translated.
InstallerTranslationMultipleLanguageTest::verifyImportedStringsTranslated function core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php Helper function to verify that the expected strings are translated.
InstallProfileUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/InstallProfileUninstallValidator.php
InternalViolation::__toString function core/lib/Drupal/Core/Field/InternalViolation.php
ItemList::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php
JsCollectionRenderer::$assetQueryString property core/lib/Drupal/Core/Asset/JsCollectionRenderer.php The asset query string.
JsonTest::$string property core/tests/Drupal/Tests/Component/Serialization/JsonTest.php A test string with the full ASCII table.
Language::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/Language.php
LanguageNegotiationTest::testStringInput function core/modules/language/tests/src/Unit/process/LanguageNegotiationTest.php Tests string input.
LanguageSelectorTranslatableTest::testLanguageStringSelector function core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php Tests content translation language selectors are correctly translated.
LanguageTypesTest::testStringInput function core/modules/language/tests/src/Unit/process/LanguageTypesTest.php Tests string input.
Link::toString function core/lib/Drupal/Core/Link.php Generates the HTML for this Link object.
LinkWidget::getUriAsDisplayableString function core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php Gets the URI without the 'internal:' or 'entity:' scheme.
LinkWidget::getUserEnteredStringAsUri function core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php Gets the user-entered string as a URI.
ListItemBase::allowedValuesString function core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php Generates a string representation of an array of 'allowed values'.
ListStringItem class core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Plugin implementation of the 'list_string' field type.
ListStringItem.php file core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
ListStringItem::allowedValuesDescription function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
ListStringItem::castAllowedValue function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
ListStringItem::exists function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Checks for existing keys for allowed values.
ListStringItem::processAllowedValuesKey function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Sets the machine name source to be the label.
ListStringItem::propertyDefinitions function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
ListStringItem::schema function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
ListStringItem::storageSettingsForm function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
ListStringItem::validateAllowedValue function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
LocalActionDefaultTest::$stringTranslation property core/tests/Drupal/Tests/Core/Menu/LocalActionDefaultTest.php The mocked translator.
locale.translate_strings.html.twig file core/modules/locale/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
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
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
LocaleStringTest::$storage property core/modules/locale/tests/src/Kernel/LocaleStringTest.php The locale storage.

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