public static function EmailContactLinkFormatter::defaultSettings in Email Contact 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/ EmailContactLinkFormatter.php, line 73
Class
- EmailContactLinkFormatter
- Plugin implementation of the 'email_contact_link' formatter.
Namespace
Drupal\email_contact\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'link_text' => t('Contact person by email'),
'redirection_to' => 'custom',
'custom_path' => '',
'include_values' => 1,
'default_message' => '',
) + parent::defaultSettings();
}