Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/Type/FloatInterface.php \Drupal\Core\TypedData\Type\FloatInterface
  2. 9 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

Expanded class hierarchy of FloatInterface

All classes that implement FloatInterface

Related topics

3 files declare their use of FloatInterface
PrimitiveTypeConstraintValidator.php in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.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\Type
View source
interface FloatInterface extends PrimitiveInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
PrimitiveInterface::getCastedValue public function Gets the primitive data value casted to the correct PHP type.
PrimitiveInterface::getValue public function Gets the primitive data value.
PrimitiveInterface::setValue public function Sets the primitive data value.