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
FormattableMarkupTest::testToString function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php @covers ::__toString
@covers ::jsonSerialize
FormattedDateDiff::$string property core/lib/Drupal/Core/Datetime/FormattedDateDiff.php The actual formatted time difference.
FormattedDateDiff::getString function core/lib/Drupal/Core/Datetime/FormattedDateDiff.php
FormBuilderTest::testBuildFormWithClassString function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the buildForm() method with a class name based form ID.
FormBuilderTest::testBuildFormWithString function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the buildForm() method with a string based form ID.
FormBuilderTest::testGetFormIdWithString function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the getFormId() method with a string based form ID.
FormBuilderTest::testGetFormWithClassString function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the getForm() method with a class name based form ID.
FormBuilderTest::testGetFormWithString function core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests the getForm() method with a string based form ID.
ForumUninstallValidator::setStringTranslation function core/modules/forum/src/ProxyClass/ForumUninstallValidator.php
GeneratedLink::__toString function core/lib/Drupal/Core/GeneratedLink.php Returns markup.
GetTest::testTransformSourceString function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is a string.
GetTest::testTransformSourceStringAt function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is a string pointing to destination.
HandlerBase::breakString function core/modules/views/src/Plugin/views/HandlerBase.php Breaks x,y,z and x+y+z into an array.
HandlerTest::testBreakString function core/modules/views/tests/src/Functional/Handler/HandlerTest.php Tests the breakString method.
HelpPageOrderTest::$stringOrder property core/modules/help/tests/src/Functional/HelpPageOrderTest.php Strings to search for on admin/help, in order.
HelpPageReverseOrderTest::$stringOrder property core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php Strings to search for on admin/help, in order.
HtmlEscapedText::$string property core/lib/Drupal/Component/Render/HtmlEscapedText.php The string to escape.
HtmlEscapedText::__toString function core/lib/Drupal/Component/Render/HtmlEscapedText.php Returns markup.
HtmlEscapedTextTest::providerToString function core/tests/Drupal/Tests/Component/Render/HtmlEscapedTextTest.php Data provider for testToString().
HtmlEscapedTextTest::testToString function core/tests/Drupal/Tests/Component/Render/HtmlEscapedTextTest.php @covers ::__toString
@covers ::jsonSerialize
HTMLRestrictions::fromString function core/modules/ckeditor5/src/HTMLRestrictions.php Parses a string of HTML restrictions into a HTMLRestrictions value object.
HTMLRestrictions::toFilterHtmlAllowedTagsString function core/modules/ckeditor5/src/HTMLRestrictions.php Transforms into the Drupal HTML filter's "allowed_html" representation.
HtmlToTextTest::stringToHtml function core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php Converts a string to its PHP source equivalent for display in test messages.
I18nQueryTrait::$i18nStringTable property core/modules/content_translation/src/Plugin/migrate/source/I18nQueryTrait.php The i18n string table name.
ImageTestBase::imageAttributesAsString function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php Helper to format attributes.
Insert::__toString function core/modules/sqlite/src/Driver/Database/sqlite/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/modules/mysql/src/Driver/Database/mysql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/modules/pgsql/src/Driver/Database/pgsql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Query/Insert.php Implements PHP magic __toString method to convert the query to a string.
Inspector::assertAllStringable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts all members are strings or objects with magic __toString() method.
Inspector::assertAllStrings function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are strings.
Inspector::assertStringable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts argument is a string or an object castable to a string.
InspectorTest::providerTestAssertAllStrings function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
InspectorTest::testAssertAllStringable function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strings or objects with __toString().
InspectorTest::testAssertAllStrings function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strings.
InstallerTranslationMultipleLanguageNonInteractiveTest::verifyImportedStringsTranslated function core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php Helper function to verify that the expected strings are translated.
InstallerTranslationMultipleLanguageTest::verifyImportedStringsTranslated function core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php Helper function to verify that the expected strings are translated.
InternalViolation::__toString function core/lib/Drupal/Core/Field/InternalViolation.php
ItemList::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php Returns a string representation of the data.
JsonTest::$string property core/tests/Drupal/Tests/Component/Serialization/JsonTest.php A test string with the full ASCII table.
Language::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/Language.php Returns a string representation of the data.
LanguageNegotiationTest::testStringInput function core/modules/language/tests/src/Unit/process/LanguageNegotiationTest.php Tests string input.
LanguageSelectorTranslatableTest::testLanguageStringSelector function core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php Tests content translation language selectors are correctly translated.
LanguageTypesTest::testStringInput function core/modules/language/tests/src/Unit/process/LanguageTypesTest.php Tests string input.
Link::toString function core/lib/Drupal/Core/Link.php Generates the HTML for this Link object.
LinkWidget::getUriAsDisplayableString function core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php Gets the URI without the 'internal:' or 'entity:' scheme.
LinkWidget::getUserEnteredStringAsUri function core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php Gets the user-entered string as a URI.
ListItemBase::allowedValuesString function core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php Generates a string representation of an array of 'allowed values'.
ListStringItem class core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Plugin implementation of the 'list_string' field type.
ListStringItem.php file core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php

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