public static function CaseStatus::propertyDefinitions in Case Tracker 8
Defines properties for casetracker.
Overrides FieldItemInterface::propertyDefinitions
File
- src/
Plugin/ Field/ FieldType/ CaseState.php, line 76 - Contains Drupal\casetracker\Plugin\FieldType\CaseStatus
Class
- CaseStatus
- Plugin implementation of the 'casetracker_status' field type.
Namespace
Drupal\casetracker\Plugin\Field\FieldTypeCode
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties['status'] = DataDefinition::create('integer')
->setRequired(TRUE)
->setLabel(t('Status'));
$properties['priority'] = DataDefinition::create('integer')
->setRequired(TRUE)
->setLabel(t('Priority'));
$properties['assigned_to'] = DataDefinition::create('integer')
->setLabel('Assigned To');
$properties['is_open'] = DataDefinition::create('integer')
->setLabel('Is Opened');
$properties['case_type'] = DataDefinition::create('integer')
->setLabel('Type');
$properties['opened'] = DataDefinition::create('integer')
->setRequired(TRUE)
->setReadOnly(TRUE)
->setLabel('Date Last Opened');
return $properties;
}