You are here

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

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/Length.php \Drupal\dimension\Plugin\Field\FieldType\Length::propertyDefinitions()
  2. 2.0.x src/Plugin/Field/FieldType/Length.php \Drupal\dimension\Plugin\Field\FieldType\Length::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/Length.php, line 40

Class

Length
Plugin implementation of the 'length_field_type' field type.

Namespace

Drupal\dimension\Plugin\Field\FieldType

Code

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