Same name in this branch
- 10 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface
- 10 core/lib/Drupal/Core/TypedData/Type/StringInterface.php \Drupal\Core\TypedData\Type\StringInterface
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/Type/StringInterface.php \Drupal\Core\TypedData\Type\StringInterface
- 9 core/lib/Drupal/Core/TypedData/Type/StringInterface.php \Drupal\Core\TypedData\Type\StringInterface
Interface for strings.
The plain value of a string is a regular PHP string. For setting the value any PHP variable that casts to a string may be passed.
Hierarchy
- interface \Drupal\Core\TypedData\PrimitiveInterface
- interface \Drupal\Core\TypedData\Type\StringInterface
Expanded class hierarchy of StringInterface
All classes that implement StringInterface
Related topics
5 files declare their use of StringInterface
- ConfigSchemaTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigSchemaTest.php - EntityFieldTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFieldTest.php - PrimitiveTypeConstraintValidator.php in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ PrimitiveTypeConstraintValidator.php - TypedConfigTest.php in core/
tests/ Drupal/ KernelTests/ Config/ TypedConfigTest.php - TypedDataTest.php in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataTest.php
File
- core/
lib/ Drupal/ Core/ TypedData/ Type/ StringInterface.php, line 15
Namespace
Drupal\Core\TypedData\TypeView source
interface StringInterface extends PrimitiveInterface {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrimitiveInterface:: |
public | function | Gets the primitive data value casted to the correct PHP type. | |
PrimitiveInterface:: |
public | function | Gets the primitive data value. | |
PrimitiveInterface:: |
public | function | Sets the primitive data value. |