You are here

protected function ImageLightBoxFormatter::captionsSourceOptions in ImageLightbox 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php \Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImageLightBoxFormatter::captionsSourceOptions()
  2. 2.0.x src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php \Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImageLightBoxFormatter::captionsSourceOptions()

Returns captions source options.

2 calls to ImageLightBoxFormatter::captionsSourceOptions()
ImageLightBoxFormatter::settingsForm in src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php
Returns a form to configure settings for the formatter.
ImageLightBoxFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php
Returns a short summary for the current formatter settings.

File

src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php, line 202

Class

ImageLightBoxFormatter
Plugin implementation of the 'imagelightbox' formatter.

Namespace

Drupal\imagelightbox\Plugin\Field\FieldFormatter

Code

protected function captionsSourceOptions() {
  return [
    'none' => t('None'),
    'image_title' => t('Image title'),
    'image_alt' => t('Image alt'),
  ];
}