public function StringItem::getPropertyDefinitions

Implements ComplexDataInterface::getPropertyDefinitions().

Overrides ComplexDataInterface::getPropertyDefinitions

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/StringItem.php, line 29
Definition of Drupal\Core\Entity\Field\Type\StringItem.

Class

StringItem
Defines the 'string_field' entity field item.

Namespace

Drupal\Core\Entity\Field\Type

Code

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