You are here

public static function KeyValueWidgetTrait::defaultSettings in Key value field 8

File

src/Plugin/Field/FieldWidget/KeyValueWidgetTrait.php, line 16

Class

KeyValueWidgetTrait
Common traits for key value field widgets inheriting from different widgets.

Namespace

Drupal\key_value_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'key_size' => 60,
    'key_label' => t('Key'),
    'key_placeholder' => '',
    'value_label' => t('Value'),
    'description_enabled' => TRUE,
    'description_label' => t('Description'),
    'description_rows' => 5,
    'description_placeholder' => '',
  ] + parent::defaultSettings();
}