interface StringInterface in Zircon Profile 8.0
Same name in this branch
- 8.0 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface
- 8.0 core/lib/Drupal/Core/TypedData/Type/StringInterface.php \Drupal\Core\TypedData\Type\StringInterface
Same name and namespace in other branches
- 8 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
6 files declare their use of StringInterface
- ConfigSchemaTest.php in core/
modules/ config/ src/ Tests/ ConfigSchemaTest.php - Contains \Drupal\config\Tests\ConfigSchemaTest.
- Email.php in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Email.php - Contains \Drupal\Core\TypedData\Plugin\DataType\Email.
- EntityFieldTest.php in core/
modules/ system/ src/ Tests/ Entity/ EntityFieldTest.php - Contains \Drupal\system\Tests\Entity\EntityFieldTest.
- PrimitiveTypeConstraintValidator.php in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ PrimitiveTypeConstraintValidator.php - Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\PrimitiveTypeConstraintValidator.
- SchemaCheckTrait.php in core/
lib/ Drupal/ Core/ Config/ Schema/ SchemaCheckTrait.php - Contains \Drupal\Core\Config\Schema\SchemaCheckTrait.
File
- core/
lib/ Drupal/ Core/ TypedData/ Type/ StringInterface.php, line 20 - Contains \Drupal\Core\TypedData\Type\StringInterface.
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. | 5 |
PrimitiveInterface:: |
public | function | Gets the primitive data value. | |
PrimitiveInterface:: |
public | function | Sets the primitive data value. |