You are here

public static function EmailSpamspanFormatter::defaultSettings in SpamSpan filter 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/EmailSpamspanFormatter.php \Drupal\spamspan\Plugin\Field\FieldFormatter\EmailSpamspanFormatter::defaultSettings()

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/EmailSpamspanFormatter.php, line 30

Class

EmailSpamspanFormatter
Plugin implementation of the 'email_mailto' formatter.

Namespace

Drupal\spamspan\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $plugin_manager = \Drupal::service('plugin.manager.filter');
  $configuration = $plugin_manager
    ->getDefinition('filter_spamspan');
  return $configuration['settings'];
}