public function TestItem::getPropertyDefinitions

Implements \Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinitions().

Overrides Map::getPropertyDefinitions

File

drupal/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Type/TestItem.php, line 29
Contains \Drupal\field_test\Type\TestItem.

Class

TestItem
Defines the 'test_field' entity field item.

Namespace

Drupal\field_test\Type

Code

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