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. Other projects
Title Object type File name Summary
StringStorageInterface::getTranslations function core/modules/locale/src/StringStorageInterface.php Loads multiple string translation objects.
StringStorageInterface::save function core/modules/locale/src/StringStorageInterface.php Save string object to storage.
StringTextareaWidget class core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php Plugin implementation of the 'string_textarea' widget.
StringTextareaWidget.php file core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php
StringTextareaWidget::defaultSettings function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php Defines the default settings for this plugin.
StringTextareaWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php Returns the form for a single field widget.
StringTextareaWidget::settingsForm function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php Returns a form to configure settings for the widget.
StringTextareaWidget::settingsSummary function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php Returns a short summary for the current widget settings.
StringTextfieldWidget class core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php Plugin implementation of the 'string_textfield' widget.
StringTextfieldWidget.php file core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php
StringTextfieldWidget::defaultSettings function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php Defines the default settings for this plugin.
StringTextfieldWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php Returns the form for a single field widget.
StringTextfieldWidget::settingsForm function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php Returns a form to configure settings for the widget.
StringTextfieldWidget::settingsSummary function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php Returns a short summary for the current widget settings.
StringTranslationTrait trait core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface.
StringTranslationTrait.php file core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php
StringTranslationTrait::$stringTranslation property core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php The string translation service.
StringTranslationTrait::formatPlural function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals function core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php Returns the number of plurals supported by a given language.
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::$testObject property core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php The object 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_translator.locale.lookup service core/modules/locale/locale.services.yml Drupal\locale\LocaleTranslation
StubEntityHandlerBase::$stringTranslation property core/tests/Drupal/Tests/Core/Entity/StubEntityHandlerBase.php
StubSourcePlugin::__toString function core/modules/migrate/tests/src/Unit/StubSourcePlugin.php
StubUpsert::__toString function core/tests/Drupal/Tests/Core/Database/Stub/StubUpsert.php Implements PHP magic __toString method to convert the query to 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/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 Sets the string translation service to use.
TestRouteProvider::$stringTranslation property core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php The string translation service.
TestTranslationManager::translateString function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Translates a TranslatableMarkup object to a string.
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.

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