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. Other projects
Title Object type File name Summary
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 install.
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/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php Tests the Translate Interface tour.
LocaleTranslateStringTourTest.php file core/modules/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php
LocaleTranslateStringTourTest::$adminUser property core/modules/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php An admin user with administrative permissions to translate.
LocaleTranslateStringTourTest::$defaultTheme property core/modules/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php The theme to install as the default for testing.
LocaleTranslateStringTourTest::$modules property core/modules/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php Modules to enable.
LocaleTranslateStringTourTest::setUp function core/modules/tour/tests/src/Functional/Locale/LocaleTranslateStringTourTest.php
LocaleTranslateStringTourTest::testTranslateStringTourTips function core/modules/tour/tests/src/Functional/Locale/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.
MenuLinkTranslation::I18N_STRING_TABLE constant core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php Drupal 6 table names.
Merge::__toString function core/lib/Drupal/Core/Database/Query/Merge.php Implements PHP magic __toString method to convert the query to a string.
MigrateEntityContentBaseTest::testEntityWithStringId function core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php Tests creation of ID columns table with definitions taken from entity type.
MigrateExternalTranslatedTestSource::__toString function core/modules/migrate/tests/modules/migrate_external_translated_test/src/Plugin/migrate/source/MigrateExternalTranslatedTestSource.php Allows class to decide how it will react when it is treated like a string.
MigrateLookupTest::testLookupWithStringIds function core/modules/migrate/tests/src/Kernel/MigrateLookupTest.php Tests a lookup with string source ids.
MigrateSourceInterface::__toString function core/modules/migrate/src/Plugin/MigrateSourceInterface.php Allows class to decide how it will react when it is treated like a string.
MockFormBase::simple_string_submit function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Function used in the mocking process of this test.
MockTestConnection::$connectionString property core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php
ModuleRequiredByThemesUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php
ModuleRouteSubscriber::explodeString function core/lib/Drupal/Core/EventSubscriber/ModuleRouteSubscriber.php Explodes a string based on a separator.
ObjWithString class core/modules/migrate/tests/src/Unit/process/LogTest.php Test class with a __toString() method.
ObjWithString::__toString function core/modules/migrate/tests/src/Unit/process/LogTest.php Returns a string.
PasswordItemTest::testPreSaveExistingEmptyString function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php @covers ::preSave
PasswordItemTest::testPreSaveExistingMultipleSpacesString function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php @covers ::preSave
PasswordItemTest::testPreSaveNewEmptyString function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php @covers ::preSave
PasswordItemTest::testPreSaveNewMultipleSpacesString function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php @covers ::preSave
PermissionHandlerTest::$stringTranslation property core/modules/user/tests/src/Unit/PermissionHandlerTest.php The mocked string translation.
PermissionsPerBundleTest::applyRecipeFromString function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Given a string of `recipe.yml` contents, applies it to the site.
PluralTranslatableMarkup::$translatedString property core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php The already translated string.
PluralTranslatableMarkup::createFromTranslatedString function core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php Constructs a new class instance from already translated markup.
PoDatabaseReader::loadStrings function core/modules/locale/src/PoDatabaseReader.php Builds and executes a database query based on options set earlier.

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