You are here

protected function FieldTimerSimpleTextFormatter::typeOptions in Field Timer 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/FieldTimerSimpleTextFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerSimpleTextFormatter::typeOptions()
1 call to FieldTimerSimpleTextFormatter::typeOptions()
FieldTimerSimpleTextFormatter::settingsForm in src/Plugin/Field/FieldFormatter/FieldTimerSimpleTextFormatter.php
Returns a form to configure settings for the formatter.

File

src/Plugin/Field/FieldFormatter/FieldTimerSimpleTextFormatter.php, line 136

Class

FieldTimerSimpleTextFormatter
Plugin implementation of the 'field_timer_simple_text' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

protected function typeOptions() {
  return [
    static::TYPE_AUTO => $this
      ->t('Auto'),
    static::TYPE_TIMER => $this
      ->t('Timer'),
    static::TYPE_COUNTDOWN => $this
      ->t('Countdown'),
  ];
}