function StringData::getCastedValue

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php \Drupal\Core\TypedData\Plugin\DataType\StringData::getCastedValue()
  2. 10 core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php \Drupal\Core\TypedData\Plugin\DataType\StringData::getCastedValue()
  3. 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php \Drupal\Core\TypedData\Plugin\DataType\StringData::getCastedValue()

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.