function StringData::getCastedValue
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php \Drupal\Core\TypedData\Plugin\DataType\StringData::getCastedValue()
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php \Drupal\Core\TypedData\Plugin\DataType\StringData::getCastedValue()
- 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php \Drupal\Core\TypedData\Plugin\DataType\StringData::getCastedValue()
Overrides PrimitiveInterface::getCastedValue
1 method overrides StringData::getCastedValue()
- DecimalData::getCastedValue in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ DecimalData.php - Gets the primitive data value casted to the correct PHP type.
File
-
core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ StringData.php, line 25
Class
- StringData
- The string data type.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function getCastedValue() {
return $this->getString();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.