Search for string

  1. Search 7.x for string
  2. Search 8.9.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
StringStorageException class core/modules/locale/src/StringStorageException.php Defines an exception thrown when storage operations fail.
StringStorageException.php file core/modules/locale/src/StringStorageException.php
StringStorageInterface interface core/modules/locale/src/StringStorageInterface.php Defines the locale string storage interface.
StringStorageInterface.php file core/modules/locale/src/StringStorageInterface.php
StringStorageInterface::countStrings function core/modules/locale/src/StringStorageInterface.php Counts source strings.
StringStorageInterface::countTranslations function core/modules/locale/src/StringStorageInterface.php Counts translations.
StringStorageInterface::createString function core/modules/locale/src/StringStorageInterface.php Creates a source string object bound to this storage but not saved.
StringStorageInterface::createTranslation function core/modules/locale/src/StringStorageInterface.php Creates a string translation object bound to this storage but not saved.
StringStorageInterface::delete function core/modules/locale/src/StringStorageInterface.php Delete string from storage.
StringStorageInterface::deleteStrings function core/modules/locale/src/StringStorageInterface.php Deletes source strings and translations using conditions.
StringStorageInterface::deleteTranslations function core/modules/locale/src/StringStorageInterface.php Deletes translations using conditions.
StringStorageInterface::findString function core/modules/locale/src/StringStorageInterface.php Loads a string source object, fast query.
StringStorageInterface::findTranslation function core/modules/locale/src/StringStorageInterface.php Loads a string translation object, fast query.
StringStorageInterface::getLocations function core/modules/locale/src/StringStorageInterface.php Loads string location information.
StringStorageInterface::getStrings function core/modules/locale/src/StringStorageInterface.php Loads multiple source string objects.
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::$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.

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