You are here

protected function FieldTimerCountyFormatter::animationOptions in Field Timer 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/FieldTimerCountyFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerCountyFormatter::animationOptions()

Gets animation options.

Return value

array Array of animation options.

1 call to FieldTimerCountyFormatter::animationOptions()
FieldTimerCountyFormatter::settingsForm in src/Plugin/Field/FieldFormatter/FieldTimerCountyFormatter.php
Returns a form to configure settings for the formatter.

File

src/Plugin/Field/FieldFormatter/FieldTimerCountyFormatter.php, line 187

Class

FieldTimerCountyFormatter
Plugin implementation of the 'field_timer_county' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

protected function animationOptions() {
  return [
    static::ANIMATION_FADE => $this
      ->t('Fade'),
    static::ANIMATION_SCROLL => $this
      ->t('Scroll'),
  ];
}