function IntegerData::getCastedValue

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

Overrides PrimitiveInterface::getCastedValue

File

core/lib/Drupal/Core/TypedData/Plugin/DataType/IntegerData.php, line 25

Class

IntegerData
The integer data type.

Namespace

Drupal\Core\TypedData\Plugin\DataType

Code

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

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