You are here

public static function CnpjWidget::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/CnpjWidget.php, line 26

Class

CnpjWidget
Field widget for 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();
}