You are here

public static function Volume::propertyDefinitions in Dimension 2.1.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/Volume.php \Drupal\dimension\Plugin\Field\FieldType\Volume::propertyDefinitions()
  2. 2.0.x src/Plugin/Field/FieldType/Volume.php \Drupal\dimension\Plugin\Field\FieldType\Volume::propertyDefinitions()

Defines field item properties.

Properties that are required to constitute a valid, non-empty item should be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired().

Return value

\Drupal\Core\TypedData\DataDefinitionInterface[] An array of property definitions of contained properties, keyed by property name.

Overrides DecimalItem::propertyDefinitions

See also

\Drupal\Core\Field\BaseFieldDefinition

File

src/Plugin/Field/FieldType/Volume.php, line 40

Class

Volume
Plugin implementation of the 'volume_field_type' field type.

Namespace

Drupal\dimension\Plugin\Field\FieldType

Code

public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
  return self::_propertyDefinitions(self::fields());
}