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
CommentStringIdEntitiesTest::testCommentFieldNonStringId function core/modules/comment/tests/src/Kernel/CommentStringIdEntitiesTest.php Tests that comment fields cannot be added entities with non-integer IDs.
CommonTestController::jsAndCssQuerystring function core/modules/system/tests/modules/common_test/src/Controller/CommonTestController.php Adds a JavaScript file and a CSS file with a query string appended.
ComputedItemListTrait::getString function core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php
ComputedString class core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php A computed property for test strings.
ComputedString.php file core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php
ComputedString::getCacheContexts function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php The cache contexts associated with this object.
ComputedString::getCacheMaxAge function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php The maximum age for which this object may be cached.
ComputedString::getCacheTags function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php The cache tags associated with this object.
ComputedString::getCastedValue function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php
ComputedString::getValue function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php Gets the data value.
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
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
@covers ::set
@covers ::initWithData
ConfigTranslationUiTest::testPluralConfigStrings function core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php Test translation of plural strings with multiple plural forms in config.
ConfigTranslationUiTest::testPluralConfigStringsSourceElements function core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php Test the number of source elements for plural strings in config translation forms.
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.
ContentEntity::__toString function core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php Allows class to decide how it will react when it is treated like 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.
datetime_range_post_update_views_string_plugin_id function core/modules/datetime_range/datetime_range.post_update.php Update existing views using datetime_range fields.
Delete::__toString function core/lib/Drupal/Core/Database/Query/Delete.php Implements PHP magic __toString method to convert the query to a string.
Dependency::$constraintString property core/lib/Drupal/Core/Extension/Dependency.php The constraint string.
Dependency::createFromString function core/lib/Drupal/Core/Extension/Dependency.php Creates a new instance of this class from a dependency string.
Dependency::getConstraintString function core/lib/Drupal/Core/Extension/Dependency.php Gets constraint string from the dependency.
DependencyTest::providerCreateFromString function core/tests/Drupal/Tests/Core/Extension/DependencyTest.php Data provider for testCreateFromString.
DependencyTest::testCreateFromString function core/tests/Drupal/Tests/Core/Extension/DependencyTest.php @covers ::createFromString
@dataProvider providerCreateFromString
EasyRdf_ParsedUri::toString function core/modules/rdf/tests/src/Traits/EasyRdf_ParsedUri.php Convert the parsed URI back into a string
EasyRdf_ParsedUri::__toString function core/modules/rdf/tests/src/Traits/EasyRdf_ParsedUri.php Magic method to convert the URI, when casted, back to a string
EmbeddedDataSource::__toString function core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php Allows class to decide how it will react when it is treated like a string.
EmptySource::__toString function core/modules/migrate/src/Plugin/migrate/source/EmptySource.php Allows class to decide how it will react when it is treated like a string.
EngineTwigTest::testTwigUrlToString function core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php Tests the magic url to string Twig functions.
EntityAdapter::getString function core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php Returns a string representation of the data.
EntityAdapterUnitTest::testGetString function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::getString
EntityFieldTest::getContainedStrings function core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php Recursive helper for getting all contained strings,
i.e. properties of type string.
EntityFormInterface::setStringTranslation function core/lib/Drupal/Core/Entity/EntityFormInterface.php Sets the string translation service for this form.
EntityQueryTest::testToString function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Tests __toString().
EntityReference::getString function core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php Returns a string representation of the data.
EntityReferenceFieldTest::testReferencedEntitiesStringId function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Tests referencing entities with string IDs.

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