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
AggregatorTitleTest::testStringFormatter function core/modules/aggregator/tests/src/Kernel/AggregatorTitleTest.php Tests the formatter output.
AjaxFormCacheTest::testQueryString function core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormCacheTest.php Tests AJAX forms on pages with a query string.
AnnotationWithAttributes::$arrayOfStrings property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php
AnnotationWithAttributes::$string property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php
AnnotationWithAttributes::getArrayOfStrings function core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php
AnnotationWithAttributes::getString function core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php
AnnotationWithConstants::STRING constant core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithConstants.php
AnnotationWithVarType::$arrayOfStrings property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php
AnnotationWithVarType::$string property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php
AssertHelperTrait::castSafeStrings function core/tests/Drupal/Tests/AssertHelperTrait.php Casts MarkupInterface objects into strings.
AssertHelperTraitTest::providerCastSafeStrings function core/tests/Drupal/Tests/AssertHelperTraitTest.php
AssertHelperTraitTest::testCastSafeStrings function core/tests/Drupal/Tests/AssertHelperTraitTest.php @covers ::castSafeStrings[[api-linebreak]]
@dataProvider providerCastSafeStrings
AssertMailTrait::assertMailString function core/lib/Drupal/Core/Test/AssertMailTrait.php Asserts that the most recently sent email message has the string in it.
AttachedAssetsTest::testAddJsFileWithQueryString function core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php Tests JavaScript files that have querystrings attached get added right.
AttachedAssetsTest::testVersionQueryString function core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php Tests JavaScript versioning.
Attribute::__toString function core/lib/Drupal/Core/Template/Attribute.php Implements the magic __toString() method.
AttributeArray::__toString function core/lib/Drupal/Core/Template/AttributeArray.php Implements the magic __toString() method.
AttributeBoolean::__toString function core/lib/Drupal/Core/Template/AttributeBoolean.php Implements the magic __toString() method.
AttributeString class core/lib/Drupal/Core/Template/AttributeString.php A class that represents most standard HTML attributes.
AttributeString.php file core/lib/Drupal/Core/Template/AttributeString.php
AttributeString::__toString function core/lib/Drupal/Core/Template/AttributeString.php Implements the magic __toString() method.
AttributeValueBase::__toString function core/lib/Drupal/Core/Template/AttributeValueBase.php Implements the magic __toString() method.
BasicStringFormatter class core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/BasicStringFormatter.php Plugin implementation of the 'basic_string' formatter.
BasicStringFormatter.php file core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/BasicStringFormatter.php
BasicStringFormatter::viewElements function core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/BasicStringFormatter.php Builds a renderable array for a field value.
BinaryData::getString function core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php Returns a string representation of the data.
BlockPluginTrait::getPreviewFallbackString function core/lib/Drupal/Core/Block/BlockPluginTrait.php
BookUninstallValidator::setStringTranslation function core/modules/book/src/ProxyClass/BookUninstallValidator.php
CacheContextsManagerTest::testAvailableContextStrings function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
color_valid_hexadecimal_string function core/modules/color/color.module Determines if a hexadecimal CSS color string is valid.
ComputedItemListTrait::getString function core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php
Condition::$stringVersion property core/lib/Drupal/Core/Database/Query/Condition.php Contains the string version of the Condition.
Condition::__toString function core/lib/Drupal/Core/Database/Query/Condition.php Implements PHP magic __toString method to convert the conditions to string.
ConfigBase::castSafeStrings function core/lib/Drupal/Core/Config/ConfigBase.php Casts any objects that implement MarkupInterface to string.
ConfigEntityAdapterTest::testGetString function core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityAdapterTest.php @covers ::getString[[api-linebreak]]
ConfigEntityQueryTest::testStringIdConditions function core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php Tests ID conditions.
ConfigTest::testSafeStringHandling function core/tests/Drupal/Tests/Core/Config/ConfigTest.php @covers ::setData[[api-linebreak]]
@covers ::set[[api-linebreak]]
@covers ::initWithData[[api-linebreak]]
Connection::sqlFunctionSubstring function core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php SQLite compatibility implementation for the SUBSTRING() SQL function.
Connection::sqlFunctionSubstringIndex function core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php SQLite compatibility implementation for the SUBSTRING_INDEX() SQL function.
Constraint::__toString function core/lib/Drupal/Component/Version/Constraint.php Gets the constraint as a string.
ContentUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Entity/ContentUninstallValidator.php
ContextualLinkDefaultTest::$stringTranslation property core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php The mocked translator.
CustomStrings class core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php String translator using overrides from variables.
CustomStrings.php file core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php
CustomStrings::$settings property core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php The settings read only object.
CustomStrings::getLanguage function core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php Retrieves translations for a given language.
CustomStrings::__construct function core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php Constructs a CustomStrings object.
DataReferenceBase::getString function core/lib/Drupal/Core/TypedData/DataReferenceBase.php Returns a string representation of the data.
DateTest::$stringTranslation property core/tests/Drupal/Tests/Core/Datetime/DateTest.php The mocked string translation.
Delete::__toString function core/lib/Drupal/Core/Database/Query/Delete.php Implements PHP magic __toString method to convert the query to a string.

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