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 10.3.x for string
  5. Other projects
Title Object type File name Summary
HtmlToTextTest::stringToHtml function core/modules/system/tests/src/Unit/Mail/HtmlToTextTest.php Converts a string to its PHP source equivalent for display in test messages.
I18nQueryTrait::$i18nStringTable property core/modules/content_translation/src/Plugin/migrate/source/I18nQueryTrait.php The i18n string table name.
I18nQueryTrait::$i18nStringTable property core/modules/migrate_drupal/src/Plugin/migrate/source/I18nQueryTrait.php The i18n string table name.
IconExtractorSettingsForm::buildStringForm function core/lib/Drupal/Core/Theme/Icon/IconExtractorSettingsForm.php Build Drupal form for a string setting to a textfield.
ImageTestBase::imageAttributesAsString function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php Helper to format attributes.
Insert::__toString function core/modules/sqlite/src/Driver/Database/sqlite/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/modules/mysql/src/Driver/Database/mysql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/modules/pgsql/src/Driver/Database/pgsql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Query/Insert.php Implements PHP magic __toString method to convert the query to a string.
Inspector::assertAllStringable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts all members are strings or objects with magic __toString() method.
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.
InternalViolation::__toString function core/lib/Drupal/Core/Field/InternalViolation.php
ItemList::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php
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.

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