You are here

protected function BaguetteboxFormatter::animationOptions in baguetteBox.js 8

Returns animation options.

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

File

src/Plugin/Field/FieldFormatter/BaguetteboxFormatter.php, line 256

Class

BaguetteboxFormatter
Plugin implementation of the 'baguettebox' formatter.

Namespace

Drupal\baguettebox\Plugin\Field\FieldFormatter

Code

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