protected static function GeneralLinkFormatter::getTitleStyles in Formatter Suite 8
Returns an array of title styles, for fields with titles.
Return value
string[] Returns an associative array with internal names as keys and human-readable translated names as values.
2 calls to GeneralLinkFormatter::getTitleStyles()
- GeneralLinkFormatter::sanitizeSettings in src/
Plugin/ Field/ FieldFormatter/ GeneralLinkFormatter.php - Sanitize settings to insure that they are safe and valid.
- GeneralLinkFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralLinkFormatter.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralLinkFormatter.php, line 59
Class
- GeneralLinkFormatter
- Formats a link field as one or more links.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected static function getTitleStyles() {
return [
'text_from_link' => t("Use the link field's title"),
'text_from_url' => t("Use the link field's URL"),
'text_custom' => t('Use custom text'),
];
}