public static function CpfDigitsWidget::defaultSettings in CPF 8
Same name and namespace in other branches
- 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\FieldWidgetCode
public static function defaultSettings() {
return [
'size' => 60,
'placeholder' => '',
'generator' => 0,
] + parent::defaultSettings();
}