You are here

public static function LanguageSelectWidget::defaultSettings in Custom Language 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/LanguageSelectWidget.php, line 26

Class

LanguageSelectWidget
Plugin implementation of the 'language_select' widget.

Namespace

Drupal\languagefield\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = [
    'format' => [
      'name' => 'name',
    ],
  ] + parent::defaultSettings();
  return $settings;
}