function BooleanData::getCastedValue
Same name in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/BooleanData.php \Drupal\Core\TypedData\Plugin\DataType\BooleanData::getCastedValue()
- 10 core/lib/Drupal/Core/TypedData/Plugin/DataType/BooleanData.php \Drupal\Core\TypedData\Plugin\DataType\BooleanData::getCastedValue()
- 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/BooleanData.php \Drupal\Core\TypedData\Plugin\DataType\BooleanData::getCastedValue()
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.