public function IntegerItem::getPropertyDefinitions

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Entity/Field/Type/IntegerItem.php \Drupal\Core\Entity\Field\Type\IntegerItem::getPropertyDefinitions()
  2. 8.x drupal/core/modules/number/lib/Drupal/number/Type/IntegerItem.php \Drupal\number\Type\IntegerItem::getPropertyDefinitions()

Implements ComplexDataInterface::getPropertyDefinitions().

Overrides Map::getPropertyDefinitions

File

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

Class

IntegerItem
Defines the 'number_integer_field' entity field item.

Namespace

Drupal\number\Type

Code

public function getPropertyDefinitions() {
  if (!isset(static::$propertyDefinitions)) {
    static::$propertyDefinitions['value'] = array(
      'type' => 'integer',
      'label' => t('Integer value'),
    );
  }
  return static::$propertyDefinitions;
}