interface FloatInterface
Same name in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/Type/FloatInterface.php \Drupal\Core\TypedData\Type\FloatInterface
- 10 core/lib/Drupal/Core/TypedData/Type/FloatInterface.php \Drupal\Core\TypedData\Type\FloatInterface
- 11.x core/lib/Drupal/Core/TypedData/Type/FloatInterface.php \Drupal\Core\TypedData\Type\FloatInterface
Interface for floating-point numbers.
The plain value of a float is a regular PHP float. For setting the value any PHP variable that casts to a float may be passed.
Hierarchy
- interface \Drupal\Core\TypedData\PrimitiveInterface
- interface \Drupal\Core\TypedData\Type\FloatInterface extends \Drupal\Core\TypedData\PrimitiveInterface
Expanded class hierarchy of FloatInterface
All classes that implement FloatInterface
Related topics
5 files declare their use of FloatInterface
- FloatData.php in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ FloatData.php - PrimitiveTypeConstraintValidator.php in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ PrimitiveTypeConstraintValidator.php - SchemaCheckTrait.php in core/
lib/ Drupal/ Core/ Config/ Schema/ SchemaCheckTrait.php - StorableConfigBase.php in core/
lib/ Drupal/ Core/ Config/ StorableConfigBase.php - TypedDataTest.php in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataTest.php
File
-
core/
lib/ Drupal/ Core/ TypedData/ Type/ FloatInterface.php, line 15
Namespace
Drupal\Core\TypedData\TypeView source
interface FloatInterface extends PrimitiveInterface {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.