protected static function GeneralUserReferenceFormatter::getOpenLinkInValues in Formatter Suite 8
Returns an array of choices for how to open a link.
Return value
string[] Returns an associative array with internal names as keys and human-readable translated names as values.
2 calls to GeneralUserReferenceFormatter::getOpenLinkInValues()
- GeneralUserReferenceFormatter::sanitizeSettings in src/
Plugin/ Field/ FieldFormatter/ GeneralUserReferenceFormatter.php - Sanitize settings to insure that they are safe and valid.
- GeneralUserReferenceFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralUserReferenceFormatter.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralUserReferenceFormatter.php, line 249
Class
- GeneralUserReferenceFormatter
- Formats a user entity reference as one or more links.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected static function getOpenLinkInValues() {
return [
'_self' => t('Open linked entity in the same tab/window'),
'_blank' => t('Open linked entity in a new tab/window'),
'download' => t('Download the linked entity'),
];
}