You are here

public static function CpfDigitsWidget::defaultSettings in CPF 8

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

Class

CpfDigitsWidget
Plugin implementation of the 'cpf_digits' widget.

Namespace

Drupal\cpf\Plugin\Field\FieldWidget

Code

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