You are here

public static function CpfWithMaskWidget::defaultSettings in CPF 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/CpfWithMaskWidget.php \Drupal\cpf\Plugin\Field\FieldWidget\CpfWithMaskWidget::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

src/Plugin/Field/FieldWidget/CpfWithMaskWidget.php, line 25

Class

CpfWithMaskWidget
Plugin implementation of the 'cpf_with_mask' widget.

Namespace

Drupal\cpf\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'size' => 60,
    'placeholder' => '',
    'mask' => '000.000.000-00',
    'generator' => 0,
  ] + parent::defaultSettings();
}