You are here

protected static function FormatterTrait::getEffects in Image Hover Effects 8

Returns list of supported effects.

2 calls to FormatterTrait::getEffects()
FormatterTrait::buildSettingsForm in src/Plugin/Field/FieldFormatter/FormatterTrait.php
FormatterTrait::buildSettingsSummary in src/Plugin/Field/FieldFormatter/FormatterTrait.php

File

src/Plugin/Field/FieldFormatter/FormatterTrait.php, line 82

Class

FormatterTrait
Helper methods for image formatters.

Namespace

Drupal\image_hover_effects\Plugin\Field\FieldFormatter

Code

protected static function getEffects() {
  return [
    'zoom' => t('Zoom'),
    'default' => t('Overlay'),
    'fade_in' => t('Overlay fade in'),
    'zoom_in' => t('Overlay zoom in'),
    'fade_in_down' => t('Overlay fade in down'),
    'fade_in_up' => t('Overlay fade in up'),
    'fade_in_left' => t('Overlay fade in left'),
    'fade_in_right' => t('Overlay fade in right'),
  ];
}