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
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 Retrieves English string to given language.
TranslationManager::translateString function core/lib/Drupal/Core/StringTranslation/TranslationManager.php Translates a TranslatableMarkup object to a string.
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.
TranslationString::getString function core/modules/locale/src/TranslationString.php Gets plain string contained in this object.
TranslationString::isNew function core/modules/locale/src/TranslationString.php Checks whether the object is not saved to storage yet.
TranslationString::isSource function core/modules/locale/src/TranslationString.php Checks whether the object is a source string.
TranslationString::isTranslation function core/modules/locale/src/TranslationString.php Checks whether the object is a translation string.
TranslationString::save function core/modules/locale/src/TranslationString.php Saves string object to storage.
TranslationString::setCustomized function core/modules/locale/src/TranslationString.php Sets the string as customized / not customized.
TranslationString::setString function core/modules/locale/src/TranslationString.php Sets the string contained in this object.
TranslationString::__construct function core/modules/locale/src/TranslationString.php Constructs a new locale string object.
TranslationStringTest class core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php Tests the TranslatableMarkup class.
TranslationStringTest.php file core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php
TranslationStringTest::$modules property core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php Modules to enable.
TranslationStringTest::rebootAndPrepareSettings function core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php Reboots the kernel to set custom translations in Settings.
TranslationStringTest::setUp function core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php
TranslationStringTest::testComparison function core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php Tests that TranslatableMarkup objects can be compared.
TranslatorInterface::getStringTranslation function core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php Retrieves English string to given language.
Truncate::__toString function core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php Implements PHP magic __toString method to convert the query to a string.
Truncate::__toString function core/lib/Drupal/Core/Database/Query/Truncate.php Implements PHP magic __toString method to convert the query to a string.
twig.loader.string service core/core.services.yml Drupal\Core\Template\Loader\StringLoader
TwigExtensionTest::testSafeStringEscaping function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php Tests the escaping of objects implementing MarkupInterface.
TwigExtensionTestString class core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
TwigExtensionTestString::$string property core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
TwigExtensionTestString::__construct function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
TwigExtensionTestString::__toString function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
TwigNodeTrans::compileString function core/lib/Drupal/Core/Template/TwigNodeTrans.php Extracts the text and tokens for the "trans" tag.
TwigPhpStorageCache::SUFFIX_SUBSTRING_LENGTH constant core/lib/Drupal/Core/Template/TwigPhpStorageCache.php The maximum length for each part of the cache key suffix.
TwigThemeTestController::urlToStringRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders a URL to a string.
TwigTransTokenParser::checkTransString function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Ensure that any nodes that are parsed are only of allowed types.
twig_theme_test.url_to_string.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.url_to_string.html.twig <div>rendered url: {{ test_url }}</div>
TypedData::getString function core/lib/Drupal/Core/TypedData/TypedData.php Returns a string representation of the data.
TypedDataInterface::getString function core/lib/Drupal/Core/TypedData/TypedDataInterface.php Returns a string representation of the data.
TypedDataStringBlock class core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/TypedDataStringBlock.php Implementation of a String TypedData contextual block plugin used by Plugin
API context test.
TypedDataStringBlock.php file core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/TypedDataStringBlock.php
TypedDataStringBlock::getTitle function core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/TypedDataStringBlock.php
UniqueFieldConstraintTest::providerTestEntityWithStringIdWithViolation function core/tests/Drupal/KernelTests/Core/Validation/UniqueFieldConstraintTest.php Data provider for ::testEntityWithStringIdWithViolation().
UniqueFieldConstraintTest::testEntityWithStringId function core/tests/Drupal/KernelTests/Core/Validation/UniqueFieldConstraintTest.php Tests cases where the validation passes for entities with string IDs.
UniqueFieldConstraintTest::testEntityWithStringIdWithViolation function core/tests/Drupal/KernelTests/Core/Validation/UniqueFieldConstraintTest.php Tests cases when validation raises violations for entities with string IDs.
UnitTestCase::getStringTranslationStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub translation manager that just returns the passed string.
UnroutedUrlTest::testToString function core/tests/Drupal/Tests/Core/UnroutedUrlTest.php Tests the toString() method.

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