public function BooleanData::getCastedValue in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/Plugin/DataType/BooleanData.php \Drupal\Core\TypedData\Plugin\DataType\BooleanData::getCastedValue()
Gets the primitive data value casted to the correct PHP type.
Return value
mixed
Overrides PrimitiveInterface::getCastedValue
File
- core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ BooleanData.php, line 24
Class
- BooleanData
- The boolean data type.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function getCastedValue() {
return (bool) $this->value;
}