You are here

public function StringData::getCastedValue in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php \Drupal\Core\TypedData\Plugin\DataType\StringData::getCastedValue()

Gets the primitive data value casted to the correct PHP type.

Return value

mixed

Overrides PrimitiveInterface::getCastedValue

File

core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php, line 24

Class

StringData
The string data type.

Namespace

Drupal\Core\TypedData\Plugin\DataType

Code

public function getCastedValue() {
  return $this
    ->getString();
}