You are here

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

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\Type
View source
interface TextInterface extends StringInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
PrimitiveInterface::getCastedValue public function Gets the primitive data value casted to the correct PHP type. 5
PrimitiveInterface::getValue public function Gets the primitive data value.
PrimitiveInterface::setValue public function Sets the primitive data value.