You are here

public static function EmailDefaultWidget::defaultSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EmailDefaultWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\EmailDefaultWidget::defaultSettings()
  2. 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EmailDefaultWidget.php \Drupal\Core\Field\Plugin\Field\FieldWidget\EmailDefaultWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EmailDefaultWidget.php, line 26

Class

EmailDefaultWidget
Plugin implementation of the 'email_default' widget.

Namespace

Drupal\Core\Field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'size' => 60,
    'placeholder' => '',
  ] + parent::defaultSettings();
}