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