protected static function GeneralImageFormatter::getLinkTypes in Formatter Suite 8
Returns an array of choices for where to link to.
Return value
string[] Returns an associative array with internal names as keys and human-readable translated names as values.
2 calls to GeneralImageFormatter::getLinkTypes()
- GeneralImageFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ GeneralImageFormatter.php - Returns a form to configure settings for the formatter.
- GeneralImageFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ GeneralImageFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ GeneralImageFormatter.php, line 184
Class
- GeneralImageFormatter
- Formats an image.
Namespace
Drupal\formatter_suite\Plugin\Field\FieldFormatterCode
protected static function getLinkTypes() {
return [
'content' => t("Link to the image field's entity"),
'file' => t("Link to the image file"),
];
}