public static function ShowEmailAddress::defaultSettings in Show Email Address 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/ ShowEmailAddress.php, line 26
Class
- ShowEmailAddress
- Plugin implementation of the 'show_email_address' formatter.
Namespace
Drupal\show_email\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'hide_per_role' => [],
'hide_user_one' => 1,
'email_mailto' => 0,
] + parent::defaultSettings();
}