public static function DateRecurItem::defaultFieldSettings in Recurring Dates Field 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldType/DateRecurItem.php \Drupal\date_recur\Plugin\Field\FieldType\DateRecurItem::defaultFieldSettings()
- 3.x src/Plugin/Field/FieldType/DateRecurItem.php \Drupal\date_recur\Plugin\Field\FieldType\DateRecurItem::defaultFieldSettings()
- 3.0.x src/Plugin/Field/FieldType/DateRecurItem.php \Drupal\date_recur\Plugin\Field\FieldType\DateRecurItem::defaultFieldSettings()
- 3.1.x src/Plugin/Field/FieldType/DateRecurItem.php \Drupal\date_recur\Plugin\Field\FieldType\DateRecurItem::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/ DateRecurItem.php, line 155
Class
- DateRecurItem
- Plugin implementation of the 'date_recur' field type.
Namespace
Drupal\date_recur\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() : array {
return [
// @todo needs settings tests.
'precreate' => 'P2Y',
'parts' => [
'all' => TRUE,
'frequencies' => [],
],
] + parent::defaultFieldSettings();
}