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. Search 11.x for string
  6. Other projects
Title Object type File name Summary
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 Tests process tableselect with string title.
Tasks::checkStandardConformingStrings function core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php Ensures standard_conforming_strings setting is 'on'.
Tasks::checkStandardConformingStringsSuccess function core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php Verifies the standard_conforming_strings setting.
TestControllers::rejectsQueryStrings function core/modules/system/tests/modules/router_test_directory/src/TestControllers.php Rejects requests with query keys.
TestEntityForm::$stringTranslation property core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
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
TestRouteProvider::$stringTranslation property core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
TestTranslationManager::translateString function core/modules/user/tests/src/Unit/PermissionHandlerTest.php
TitleResolverTest::testEmptyStringStaticTitle function core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php Tests an empty string static title.
ToStringTrait trait core/lib/Drupal/Component/Utility/ToStringTrait.php Wraps __toString in a trait to avoid some fatal errors.
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.
TransactionManagerBase::dumpStackItemsAsString function core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php Produces a string representation of the stack items.
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.
TranslatableMarkup::__toString function core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Returns the string representation of this object.
TranslatableMarkupTest::testIsStringAssertion function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Tests is string assertion.
TranslatableMarkupTest::testIsStringAssertionWithFormattableMarkup function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Tests is string assertion with formattable markup.
TranslatableMarkupTest::testToString function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Tests that errors are correctly handled when a __toString() fails.
TranslatableStringAdapter class core/modules/package_manager/src/TranslatableStringAdapter.php An adapter for interoperable string translation.
TranslatableStringAdapter.php file core/modules/package_manager/src/TranslatableStringAdapter.php
TranslatableStringAdapter::getAll function core/modules/package_manager/src/TranslatableStringAdapter.php
TranslatableStringAdapter::trans function core/modules/package_manager/src/TranslatableStringAdapter.php
TranslatableStringFactory class core/modules/package_manager/src/TranslatableStringFactory.php Creates translatable strings that can interoperate with Composer Stager.
TranslatableStringFactory.php file core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::createDomainOptions function core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::createTranslatableMessage function core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::createTranslationParameters function core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::__construct function core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringTest class core/modules/package_manager/tests/src/Kernel/TranslatableStringTest.php Tests Translatable String.
TranslatableStringTest.php file core/modules/package_manager/tests/src/Kernel/TranslatableStringTest.php
TranslatableStringTest::testCreateTranslatableString function core/modules/package_manager/tests/src/Kernel/TranslatableStringTest.php Tests various ways of creating a translatable string.
TranslatedViewTest::testTranslatedStrings function core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php Tests view translation.
TranslateFormBase::translateFilterLoadStrings function core/modules/locale/src/Form/TranslateFormBase.php Builds a string search query and returns an array of string objects.
TranslationInterface::translateString function core/lib/Drupal/Core/StringTranslation/TranslationInterface.php Translates a TranslatableMarkup object to a string.
TranslationManager::getStringTranslation function core/lib/Drupal/Core/StringTranslation/TranslationManager.php
TranslationManager::translateString function core/lib/Drupal/Core/StringTranslation/TranslationManager.php
TranslationStatusForm::createInfoString function core/modules/locale/src/Form/TranslationStatusForm.php Provides debug info for projects in case translation files are not found.
TranslationString class core/modules/locale/src/TranslationString.php Defines the locale translation string object.
TranslationString.php file core/modules/locale/src/TranslationString.php
TranslationString::$customized property core/modules/locale/src/TranslationString.php Integer indicating whether this string is customized.
TranslationString::$isNew property core/modules/locale/src/TranslationString.php Boolean indicating whether the string object is new.
TranslationString::$language property core/modules/locale/src/TranslationString.php The language code.
TranslationString::$translation property core/modules/locale/src/TranslationString.php The string translation.
TranslationString::delete function core/modules/locale/src/TranslationString.php Deletes string object from storage.

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