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
StringTranslationTrait::getStringTranslation function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Gets the string translation service.
StringTranslationTrait::setStringTranslation function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Sets the string translation service to use.
StringTranslationTrait::t function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Translates a string to the current language or to a given language.
StringTranslationTraitTest class core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php @coversDefaultClass \Drupal\Core\StringTranslation\StringTranslationTrait
@group StringTranslation
StringTranslationTraitTest.php file core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php
StringTranslationTraitTest::$reflection property core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php A reflection of self::$translation.
StringTranslationTraitTest::$translation property core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php The mock under test that uses StringTranslationTrait.
StringTranslationTraitTest::setUp function core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php
StringTranslationTraitTest::testFormatPlural function core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php @covers ::formatPlural
StringTranslationTraitTest::testT function core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php @covers ::t
string_translation service core/core.services.yml Drupal\Core\StringTranslation\TranslationManager
string_translator.custom_strings service core/core.services.yml Drupal\Core\StringTranslation\Translator\CustomStrings
string_translator.locale.lookup service core/modules/locale/locale.services.yml Drupal\locale\LocaleTranslation
StubSourcePlugin::__toString function core/modules/migrate/tests/src/Unit/MigrateSourceTest.php Allows class to decide how it will react when it is treated like a string.
SubstrTest::testLengthIsString function core/modules/migrate/tests/src/Unit/process/SubstrTest.php Tests that the length parameter is an integer.
SubstrTest::testStartIsString function core/modules/migrate/tests/src/Unit/process/SubstrTest.php Tests that the start parameter is an integer.
TableSelectTest::testProcessTableselectWithStringTitle function core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php @covers ::processTableselect
Tasks::checkStandardConformingStrings function core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php Ensures standard_conforming_strings setting is 'on'.
Tasks::checkStandardConformingStringsSuccess function core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php Verifies the standard_conforming_strings setting.
TestBaseTest::providerRandomStringValidate function core/modules/simpletest/tests/src/Unit/TestBaseTest.php Provides data for the random string validation test.
TestBaseTest::testRandomString function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::randomString
@dataProvider providerRandomItems
TestBaseTest::testRandomStringValidate function core/modules/simpletest/tests/src/Unit/TestBaseTest.php @covers ::randomStringValidate
@dataProvider providerRandomStringValidate
TestCompatibilityTrait::assertIsNotString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Provides forward-compatibility for assertIsNotString().
TestCompatibilityTrait::assertIsNotString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Provides forward-compatibility for assertIsNotString().
TestCompatibilityTrait::assertIsString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Provides forward-compatibility for assertIsString().
TestCompatibilityTrait::assertIsString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Provides forward-compatibility for assertIsString().
TestCompatibilityTrait::assertStringContainsString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Forward compatibility for assertStringContainsString.
TestCompatibilityTrait::assertStringContainsString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Forward compatibility for assertStringContainsString.
TestCompatibilityTrait::assertStringContainsStringIgnoringCase function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Forward compatibility for assertStringContainsStringIgnoringCase.
TestCompatibilityTrait::assertStringContainsStringIgnoringCase function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Forward compatibility for assertStringContainsStringIgnoringCase.
TestCompatibilityTrait::assertStringNotContainsString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Forward compatibility for assertStringNotContainsString.
TestCompatibilityTrait::assertStringNotContainsString function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Forward compatibility for assertStringNotContainsString.
TestCompatibilityTrait::assertStringNotContainsStringIgnoringCase function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/TestCompatibilityTrait.php Forward compatibility for assertStringNotContainsStringIgnoringCase.
TestCompatibilityTrait::assertStringNotContainsStringIgnoringCase function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/TestCompatibilityTrait.php Forward compatibility for assertStringNotContainsStringIgnoringCase.
TestMigrateExecutable::setStringTranslation function core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php Sets the string translation service.
TestPathBasedBreadcrumbBuilder::setStringTranslation function core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php Sets the string translation service to use.
TestTranslationManager::translateString function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Translates a TranslatableMarkup object to a string.
TextWrapper::__toString function core/tests/Drupal/Tests/Component/Utility/TextWrapper.php Magic method
ToStringTrait trait core/lib/Drupal/Component/Utility/ToStringTrait.php Wraps __toString in a trait to avoid some fatals.
ToStringTrait.php file core/lib/Drupal/Component/Utility/ToStringTrait.php
ToStringTrait::render function core/lib/Drupal/Component/Utility/ToStringTrait.php Renders the object as a string.
ToStringTrait::_die function core/lib/Drupal/Component/Utility/ToStringTrait.php For test purposes, wrap die() in an overridable method.
ToStringTrait::__toString function core/lib/Drupal/Component/Utility/ToStringTrait.php Implements the magic __toString() method.
TranslatableMarkup::$stringTranslation property core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php The string translation service.
TranslatableMarkup::getStringTranslation function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets the string translation service.
TranslatableMarkup::getUntranslatedString function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Gets the untranslated string value stored in this translated string.
TranslatableMarkupTest::testIsStringAssertion function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @covers ::__construct
TranslatableMarkupTest::testIsStringAssertionWithFormattableMarkup function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @covers ::__construct
TranslatableMarkupTest::testToString function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Tests that errors are correctly handled when a __toString() fails.
TranslatedViewTest::testTranslatedStrings function core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php

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