You are here

public static function CpfCnpjWidget::defaultSettings in Brazilian IDs 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/CpfCnpjWidget.php, line 26

Class

CpfCnpjWidget
Field widget for CPF and CNPJ number input. It can be used with normal text fields.

Namespace

Drupal\brazilian_ids\Plugin\Field\FieldWidget

Code

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