protected static function GeneralEmailFormatter::getEmailStyles in Formatter Suite 8
Returns an array of formatting styles.
Return value
string[] Returns an associative array with internal names as keys and human-readable translated names as values.
2 calls to GeneralEmailFormatter::getEmailStyles()
- GeneralEmailFormatter::sanitizeSettings in src/
Plugin/ Field/ FieldFormatter/ GeneralEmailFormatter.php - Sanitize settings to insure that they are safe and valid.
- GeneralEmailFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralEmailFormatter.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralEmailFormatter.php, line 47
Class
- GeneralEmailFormatter
- Formats an email address.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected static function getEmailStyles() {
return [
'plain' => t('Email address as text'),
'mailto' => t('Email address with mail-to link'),
'custommailto' => t('Custom text with mail-to link'),
];
}