interface DecimalInterface

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/TypedData/Type/DecimalInterface.php \Drupal\Core\TypedData\Type\DecimalInterface

Interface for decimal numbers.

The plain value of a decimal is a PHP string. For setting the value any PHP variable that casts to an numeric string may be passed.

Hierarchy

  • interface \Drupal\Core\TypedData\Type\DecimalInterface extends \Drupal\Core\TypedData\PrimitiveInterface

Expanded class hierarchy of DecimalInterface

All classes that implement DecimalInterface

Related topics

3 files declare their use of DecimalInterface
DecimalData.php in core/lib/Drupal/Core/TypedData/Plugin/DataType/DecimalData.php
PrimitiveTypeConstraintValidator.php in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
TypedDataTest.php in core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php

File

core/lib/Drupal/Core/TypedData/Type/DecimalInterface.php, line 15

Namespace

Drupal\Core\TypedData\Type
View source
interface DecimalInterface extends PrimitiveInterface {

}

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