public function TypedData::getString in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getString()
- 9 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getString()
Returns a string representation of the data.
Return value
string The string representation of the data.
Overrides TypedDataInterface::getString
2 calls to TypedData::getString()
- ComputedString::getCastedValue in core/
modules/ system/ tests/ modules/ entity_test/ src/ TypedData/ ComputedString.php - StringData::getCastedValue in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ StringData.php - Gets the primitive data value casted to the correct PHP type.
3 methods override TypedData::getString()
- DataReferenceBase::getString in core/
lib/ Drupal/ Core/ TypedData/ DataReferenceBase.php - Returns a string representation of the data.
- ItemList::getString in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ ItemList.php - Returns a string representation of the data.
- Map::getString in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Map.php - Returns a string representation of the data.
File
- core/
lib/ Drupal/ Core/ TypedData/ TypedData.php, line 112
Class
- TypedData
- The abstract base class for typed data.
Namespace
Drupal\Core\TypedDataCode
public function getString() {
return (string) $this
->getValue();
}