function FieldNote::propertyDefinitions
Same name in other branches
- 3.x modules/field_permission_example/src/Plugin/Field/FieldType/FieldNote.php \Drupal\field_permission_example\Plugin\Field\FieldType\FieldNote::propertyDefinitions()
Overrides FieldItemInterface::propertyDefinitions
File
-
modules/
field_permission_example/ src/ Plugin/ Field/ FieldType/ FieldNote.php, line 49
Class
- FieldNote
- Plugin implementation of the 'field_permission_example' field type.
Namespace
Drupal\field_permission_example\Plugin\Field\FieldTypeCode
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties['value'] = DataDefinition::create('string')->setLabel(t('Field Note'));
return $properties;
}