public static function OfficeHoursItem::defaultStorageSettings in Office Hours 8
Defines the storage-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FieldItemBase::defaultStorageSettings
File
- src/
Plugin/ Field/ FieldType/ OfficeHoursItem.php, line 78
Class
- OfficeHoursItem
- Plugin implementation of the 'office_hours' field type.
Namespace
Drupal\office_hours\Plugin\Field\FieldTypeCode
public static function defaultStorageSettings() {
$defaultStorageSettings = [
'time_format' => 'G',
'element_type' => 'office_hours_datelist',
'increment' => 30,
'required_start' => FALSE,
'required_end' => FALSE,
'limit_start' => '',
'limit_end' => '',
'comment' => 1,
'valhrs' => FALSE,
'cardinality_per_day' => 2,
] + parent::defaultStorageSettings();
return $defaultStorageSettings;
}