You are here

public static function PhoneLinkFieldFormatter::defaultSettings in Phone link 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/PhoneLinkFieldFormatter.php, line 31

Class

PhoneLinkFieldFormatter
Plugin implementation of the 'phone_link_field_formatter' formatter.

Namespace

Drupal\phone_link\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'title' => t('Call to @phone'),
    'text' => '',
    'type' => 'tel',
  ] + parent::defaultSettings();
}