You are here

protected function ImageLightBoxFormatter::animationOptions 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::animationOptions()
  2. 2.0.x src/Plugin/Field/FieldFormatter/ImagelightboxFormatter.php \Drupal\imagelightbox\Plugin\Field\FieldFormatter\ImageLightBoxFormatter::animationOptions()

Returns animation options.

File

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

Class

ImageLightBoxFormatter
Plugin implementation of the 'imagelightbox' formatter.

Namespace

Drupal\imagelightbox\Plugin\Field\FieldFormatter

Code

protected function animationOptions() {
  return [
    'none' => t('None'),
    'slideIn' => t('Slide'),
    'fadeIn' => t('Fade'),
  ];
}