You are here

public static function PhysicalWidgetBase::defaultSettings in Physical Fields 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/PhysicalWidgetBase.php, line 16

Class

PhysicalWidgetBase
Provides base functionality for physical widgets.

Namespace

Drupal\physical\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'default_unit' => '',
    'allow_unit_change' => TRUE,
  ] + parent::defaultSettings();
}