You are here

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

Class

PasswordWidget
A widget Password.

Namespace

Drupal\password_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    // Create a default setting 'size', and
    // assign a default value of 60.
    'size' => 60,
  ] + parent::defaultSettings();
}