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
ContextualFiltersStringTest::$defaultTheme property core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php The theme to install as the default for testing.
ContextualFiltersStringTest::$modules property core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Modules to install.
ContextualFiltersStringTest::$role1 property core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Role id of role 1.
ContextualFiltersStringTest::$role2 property core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Role id of role 2.
ContextualFiltersStringTest::$testViews property core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Views used by this test.
ContextualFiltersStringTest::setUp function core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Sets up the test.
ContextualFiltersStringTest::testUserRoleContextualFilter function core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Tests contextual filter for the user roles.
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.
DatabaseDriverUninstallValidator::setStringTranslation function core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php
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.
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
DialogRenderer::getTitleAsStringable function core/lib/Drupal/Core/Render/MainContent/DialogRenderer.php Gets the title as a string or stringable object.
Drupal\locale\StringStorageInterface service core/modules/locale/locale.services.yml
Drupal\package_manager\TranslatableStringFactory service core/modules/package_manager/package_manager.services.yml
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
EntityBundleExistsConstraintValidatorTest::testValueMustBeAString function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Tests that the constraint validator will only work with strings.
EntityFieldTest::getContainedStrings function core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php Gets all contained strings recursively.
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.
EntityReferenceItemTest::$entityStringId property core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php The test entity with a string ID.
EntityReferenceItemTest::testContentEntityReferenceItemWithStringId function core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php Tests referencing content entities with string IDs.
EntityResourceTestBase::castToString function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Transforms a normalization: casts all non-string types to strings.
EntitySerializationTest::testDenormalizeStringValue function core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php Tests normalizing/denormalizing using string values.
EntityTestDateOnlyTest::$dateString property core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php The ISO date string to use throughout the test.
EntityTestDateRangeTest::$dateString property core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php The ISO date string to use throughout the test.
EntityTestDatetimeTest::$dateString property core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php The ISO date string to use throughout the test.
EntityTestStringId class core/modules/system/tests/modules/entity_test/src/Entity/EntityTestStringId.php Defines a test entity class with a string ID.
EntityTestStringId.php file core/modules/system/tests/modules/entity_test/src/Entity/EntityTestStringId.php
EntityTestStringId::baseFieldDefinitions function core/modules/system/tests/modules/entity_test/src/Entity/EntityTestStringId.php
EntityTypeManager::$stringTranslation property core/lib/Drupal/Core/Entity/EntityTypeManager.php The string translation service.
EntityViewsDataTest::assertStringField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a string field.
ExplodeTest::testExplodeWithNonString function core/modules/migrate/tests/src/Unit/process/ExplodeTest.php Tests explode fails properly on non-strings.
ExplodeTest::testExplodeWithStrictAndEmptyString function core/modules/migrate/tests/src/Unit/process/ExplodeTest.php Tests Explode return values with an empty string and strict check.

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