You are here

public static function PhoneInternationalDefaultWidget::defaultSettings in International Phone 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/PhoneInternationalDefaultWidget.php \Drupal\phone_international\Plugin\Field\FieldWidget\PhoneInternationalDefaultWidget::defaultSettings()
  2. 3.x src/Plugin/Field/FieldWidget/PhoneInternationalDefaultWidget.php \Drupal\phone_international\Plugin\Field\FieldWidget\PhoneInternationalDefaultWidget::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/PhoneInternationalDefaultWidget.php, line 28

Class

PhoneInternationalDefaultWidget
Plugin implementation of the 'phone_international_widget' widget.

Namespace

Drupal\phone_international\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'initial_country' => 'PT',
    'geolocation' => FALSE,
  ] + parent::defaultSettings();
}