function ListIntegerItem::propertyDefinitions
Same name in other branches
- 8.9.x core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php \Drupal\options\Plugin\Field\FieldType\ListIntegerItem::propertyDefinitions()
- 10 core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php \Drupal\options\Plugin\Field\FieldType\ListIntegerItem::propertyDefinitions()
- 11.x core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php \Drupal\options\Plugin\Field\FieldType\ListIntegerItem::propertyDefinitions()
Overrides FieldItemInterface::propertyDefinitions
File
-
core/
modules/ options/ src/ Plugin/ Field/ FieldType/ ListIntegerItem.php, line 27
Class
- ListIntegerItem
- Plugin implementation of the 'list_integer' field type.
Namespace
Drupal\options\Plugin\Field\FieldTypeCode
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties['value'] = DataDefinition::create('integer')->setLabel(new TranslatableMarkup('Integer value'))
->setRequired(TRUE);
return $properties;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.