You are here

public static function TelephoneFormatter::defaultSettings in Telephone Formatter 8

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/FieldFormatter/TelephoneFormatter.php, line 93

Class

TelephoneFormatter
Plugin implementation of the 'telephone_formatter' formatter.

Namespace

Drupal\telephone_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'format' => PhoneNumberFormat::INTERNATIONAL,
    'link' => TRUE,
    'default_country' => NULL,
  ] + parent::defaultSettings();
}