You are here

public static function MobileNumberCountryFormatter::defaultSettings in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/MobileNumberCountryFormatter.php \Drupal\mobile_number\Plugin\Field\FieldFormatter\MobileNumberCountryFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

3 calls to MobileNumberCountryFormatter::defaultSettings()
MobileNumberCountryFormatter::settingsForm in src/Plugin/Field/FieldFormatter/MobileNumberCountryFormatter.php
Returns a form to configure settings for the formatter.
MobileNumberCountryFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/MobileNumberCountryFormatter.php
Returns a short summary for the current formatter settings.
MobileNumberCountryFormatter::viewElements in src/Plugin/Field/FieldFormatter/MobileNumberCountryFormatter.php
Builds a renderable array for a field value.

File

src/Plugin/Field/FieldFormatter/MobileNumberCountryFormatter.php, line 25

Class

MobileNumberCountryFormatter
Plugin implementation of the 'mobile_number_country' formatter.

Namespace

Drupal\mobile_number\Plugin\Field\FieldFormatter

Code

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