You are here

public static function NameWidget::defaultSettings in Name Field 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/NameWidget.php, line 171

Class

NameWidget
Plugin implementation of the 'name' widget.

Namespace

Drupal\name\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = self::getDefaultNameFormDisplaySettings();
  $settings['override_field_settings'] = FALSE;
  return $settings + parent::defaultSettings();
}