You are here

protected function FieldTimerCountdownLedFormatter::themeOptions in Field Timer 8

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

Gets theme options.

Return value

array Array of theme options.

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

File

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

Class

FieldTimerCountdownLedFormatter
Plugin implementation of the 'field_timer_countdown' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

protected function themeOptions() {
  return [
    static::LED_THEME_GREEN => $this
      ->t('Green'),
    static::LED_THEME_BLUE => $this
      ->t('Blue'),
  ];
}