interface TextInterface in Typed Data API enhancements 8
Interface for text data.
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.
This type adds nothing to the base StringInterface type. It is used as a indicator that the string data is 'long'. The Typed Data API module may then use a Textarea form widget for editing the value.
Hierarchy
- interface \Drupal\Core\TypedData\PrimitiveInterface
- interface \Drupal\Core\TypedData\Type\StringInterface
- interface \Drupal\typed_data\TypedData\Type\TextInterface
- interface \Drupal\Core\TypedData\Type\StringInterface
Expanded class hierarchy of TextInterface
All classes that implement TextInterface
1 file declares its use of TextInterface
- TextData.php in src/
Plugin/ DataType/ TextData.php
File
- src/
TypedData/ Type/ TextInterface.php, line 19
Namespace
Drupal\typed_data\TypedData\TypeView source
interface TextInterface extends StringInterface {
}
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. |