public function DecimalItem::getPropertyDefinitions

Implements ComplexDataInterface::getPropertyDefinitions().

Overrides Map::getPropertyDefinitions

File

drupal/core/modules/number/lib/Drupal/number/Type/DecimalItem.php, line 29
Contains \Drupal\number\Type\DecimalItem.

Class

DecimalItem
Defines the 'number_decimal_field' entity field item.

Namespace

Drupal\number\Type

Code

public function getPropertyDefinitions() {
  if (!isset(static::$propertyDefinitions)) {
    static::$propertyDefinitions['value'] = array(
      // Decimals are represented as string in PHP.
      'type' => 'string',
      'label' => t('Decimal value'),
    );
  }
  return static::$propertyDefinitions;
}