You are here

protected static function GeneralImageFormatter::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 GeneralImageFormatter::getOpenLinkInValues()
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 169

Class

GeneralImageFormatter
Formats an image.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

protected static function getOpenLinkInValues() {
  return [
    '_self' => t('Open in the same tab/window'),
    '_blank' => t('Open in a new tab/window'),
    'download' => t('Download the entity or image file'),
  ];
}