You are here

public static function ReadonlyFieldWidget::defaultSettings in Read-only Field Widget 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/ReadonlyFieldWidget.php, line 54

Class

ReadonlyFieldWidget
Plugin implementation of the 'readonly_field_widget' widget.

Namespace

Drupal\readonly_field_widget\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'label' => 'above',
    'formatter_type' => NULL,
    'formatter_settings' => NULL,
    'show_description' => FALSE,
  ];
}