You are here

public function PrimitiveInterface::getCastedValue in Drupal 8

Same name and namespace in other branches
  1. 9 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();