function PrimitiveInterface::getCastedValue

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::getCastedValue()
  2. 10 core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::getCastedValue()
  3. 11.x core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::getCastedValue()

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

Return value

mixed

5 methods override PrimitiveInterface::getCastedValue()
BinaryData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
Gets the primitive data value casted to the correct PHP type.
BooleanData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/BooleanData.php
Gets the primitive data value casted to the correct PHP type.
FloatData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/FloatData.php
Gets the primitive data value casted to the correct PHP type.
IntegerData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/IntegerData.php
Gets the primitive data value casted to the correct PHP type.
StringData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php
Gets the primitive data value casted to the correct PHP type.

File

core/lib/Drupal/Core/TypedData/PrimitiveInterface.php, line 33

Class

PrimitiveInterface
Interface for primitive data.

Namespace

Drupal\Core\TypedData

Code

public function getCastedValue();

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