You are here

public static function TimeField::defaultFieldSettings in Timefield 1.0.x

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/TimeField.php, line 27

Class

TimeField
Plugin implementation of the 'timefield' field type.

Namespace

Drupal\timefield\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'totime' => '',
    'weekly_summary' => NULL,
    'weekly_summary_with_label' => NULL,
  ] + parent::defaultFieldSettings();
}