You are here

public static function MobileNumberInternationalFormatter::defaultSettings in Mobile Number 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/MobileNumberInternationalFormatter.php \Drupal\mobile_number\Plugin\Field\FieldFormatter\MobileNumberInternationalFormatter::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 MobileNumberInternationalFormatter::defaultSettings()
MobileNumberInternationalFormatter::settingsForm in src/Plugin/Field/FieldFormatter/MobileNumberInternationalFormatter.php
Returns a form to configure settings for the formatter.
MobileNumberInternationalFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/MobileNumberInternationalFormatter.php
Returns a short summary for the current formatter settings.
MobileNumberInternationalFormatter::viewElements in src/Plugin/Field/FieldFormatter/MobileNumberInternationalFormatter.php
Builds a renderable array for a field value.

File

src/Plugin/Field/FieldFormatter/MobileNumberInternationalFormatter.php, line 29

Class

MobileNumberInternationalFormatter
Plugin implementation of the 'mobile_number_international' formatter.

Namespace

Drupal\mobile_number\Plugin\Field\FieldFormatter

Code

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