You are here

public static function PostalCodeItem::defaultFieldSettings in Postal Code 8

Defines the field-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FieldItemBase::defaultFieldSettings

File

src/Plugin/Field/FieldType/PostalCodeItem.php, line 47

Class

PostalCodeItem
Plugin implementation of the 'postal_code' field type.

Namespace

Drupal\postal_code\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  $settings = array(
    'country_select' => 'any',
  ) + parent::defaultFieldSettings();
  return $settings;
}