You are here

public static function YearOnlyItem::defaultFieldSettings in Year Only 9.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/YearOnlyItem.php \Drupal\yearonly\Plugin\Field\FieldType\YearOnlyItem::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/YearOnlyItem.php, line 63

Class

YearOnlyItem
Plugin implementation of the 'yearonly' field type.

Namespace

Drupal\yearonly\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'yearonly_from' => '',
    'yearonly_to' => '',
  ] + parent::defaultFieldSettings();
}