You are here

public static function GeneralEmailFormatter::defaultSettings in Formatter Suite 8

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

1 call to GeneralEmailFormatter::defaultSettings()
GeneralEmailFormatter::sanitizeSettings in src/Plugin/Field/FieldFormatter/GeneralEmailFormatter.php
Sanitize settings to insure that they are safe and valid.

File

src/Plugin/Field/FieldFormatter/GeneralEmailFormatter.php, line 74

Class

GeneralEmailFormatter
Formats an email address.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array_merge([
    'emailStyle' => 'mailto',
    'linkText' => t('Email'),
    'classes' => '',
    'listStyle' => 'span',
    'listSeparator' => ', ',
  ], parent::defaultSettings());
}