public function FieldNewItem::getPropertyDefinitions

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

Overrides IntegerItem::getPropertyDefinitions

File

drupal/core/modules/comment/lib/Drupal/comment/FieldNewItem.php, line 29
Contains \Drupal\comment\FieldNewItem.

Class

FieldNewItem
The field item for the 'new' field.

Namespace

Drupal\comment

Code

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