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
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 Test CRUD API.
LocaleStringTest::testStringSearchApi function core/modules/locale/tests/src/Kernel/LocaleStringTest.php Test 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.
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.
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.
ModuleVersion::createFromVersionString function core/modules/update/src/ModuleVersion.php Constructs a module version object from a version string.
NativeUpsert::__toString function core/lib/Drupal/Core/Database/Driver/pgsql/NativeUpsert.php Implements PHP magic __toString method to convert the query to a string.
OEmbedSourceTest::testLocalThumbnailUriQueryStringIsIgnored function core/modules/media/tests/src/Kernel/OEmbedSourceTest.php @covers ::getLocalThumbnailUri
PermissionHandlerTest::$stringTranslation property core/modules/user/tests/src/Unit/PermissionHandlerTest.php The mocked string translation.
PhpunitCompatibilityTraitTest::testAssertStringContainsString function core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php Tests that assert*StringContainsString* methods are available.
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.
PoDatabaseReader::readString function core/modules/locale/src/PoDatabaseReader.php Get the database result resource for the given language and options.
PoDatabaseWriter::importString function core/modules/locale/src/PoDatabaseWriter.php Imports one string into the database.
PoHeader::setFromString function core/lib/Drupal/Component/Gettext/PoHeader.php Populate internal values from a string.
PoHeader::__toString function core/lib/Drupal/Component/Gettext/PoHeader.php Generate a Gettext PO formatted header string based on data set earlier.
PoItem::formatString function core/lib/Drupal/Component/Gettext/PoItem.php Formats a string for output on multiple lines.
PoItem::__toString function core/lib/Drupal/Component/Gettext/PoItem.php Output the PoItem as a string.
PreviewFallbackInterface::getPreviewFallbackString function core/lib/Drupal/Core/Render/PreviewFallbackInterface.php Returns a string to be used as a fallback during preview.
Query::__toString function core/lib/Drupal/Core/Database/Query/Query.php Implements PHP magic __toString method to convert the query to a string.
Query::__toString function core/lib/Drupal/Core/Entity/Query/Sql/Query.php Implements the magic __toString method.

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