Search for string

  1. Search 7.x for string
  2. Search 9.5.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
HtmlToTextTest::stringToHtml function core/modules/system/tests/src/Functional/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.
Insert::__toString function core/lib/Drupal/Core/Database/Driver/sqlite/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Driver/mysql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Driver/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.
InstallerTranslationMultipleLanguageTest::verifyImportedStringsTranslated function core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php Helper function to verify that the expected strings are translated.
ItemList::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php Returns a string representation of the data.
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 Returns a string representation of the data.
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 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.
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.

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