function PrimitiveInterface::getCastedValue

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::getCastedValue()
  2. 8.9.x core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::getCastedValue()
  3. 10 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 The primitive data value cast to the correct PHP type.

5 methods override PrimitiveInterface::getCastedValue()
BinaryData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
BooleanData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/BooleanData.php
FloatData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/FloatData.php
IntegerData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/IntegerData.php
StringData::getCastedValue in core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php

File

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

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.