public static function DurationField::defaultFieldSettings in Duration Field 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldType/DurationField.php \Drupal\duration_field\Plugin\Field\FieldType\DurationField::defaultFieldSettings()
- 3.0.x src/Plugin/Field/FieldType/DurationField.php \Drupal\duration_field\Plugin\Field\FieldType\DurationField::defaultFieldSettings()
Defines the field-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FieldItemBase::defaultFieldSettings
File
- src/
Plugin/ Field/ FieldType/ DurationField.php, line 27
Class
- DurationField
- Provides the 'duration' field type.
Namespace
Drupal\duration_field\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return [
'granularity' => [
'year' => TRUE,
'month' => TRUE,
'day' => TRUE,
'hour' => TRUE,
'minute' => TRUE,
'second' => TRUE,
],
] + parent::defaultFieldSettings();
}