You are here

public static function MaskedinputFieldWidgetDefault::defaultSettings in Masked Input 8

Defines the default settings for this plugin.

Return value

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

Overrides StringTextfieldWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/MaskedinputFieldWidgetDefault.php, line 27

Class

MaskedinputFieldWidgetDefault
Plugin implementation of the 'masked_input_field_widget_default default' widget.

Namespace

Drupal\masked_input\Plugin\Field\FieldWidget

Code

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