function FloatItem::propertyDefinitions
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php \Drupal\Core\Field\Plugin\Field\FieldType\FloatItem::propertyDefinitions()
- 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php \Drupal\Core\Field\Plugin\Field\FieldType\FloatItem::propertyDefinitions()
- 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php \Drupal\Core\Field\Plugin\Field\FieldType\FloatItem::propertyDefinitions()
Overrides FieldItemInterface::propertyDefinitions
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ FloatItem.php, line 33
Class
- FloatItem
- Defines the 'float' field type.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties['value'] = DataDefinition::create('float')->setLabel(t('Float'))
->setRequired(TRUE);
return $properties;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.