function TypedData::getString
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getString()
- 10 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getString()
- 11.x core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::getString()
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.
6 methods override TypedData::getString()
- BinaryData::getString in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ BinaryData.php - Returns a string representation of the data.
- DataReferenceBase::getString in core/
lib/ Drupal/ Core/ TypedData/ DataReferenceBase.php - Returns a string representation of the data.
- EntityAdapter::getString in core/
lib/ Drupal/ Core/ Entity/ Plugin/ DataType/ EntityAdapter.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.
- Language::getString in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Language.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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.