You are here

protected function FieldTimerCountyFormatter::themeOptions in Field Timer 2.x

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

Gets county theme options.

Return value

array Array of county theme options.

1 call to FieldTimerCountyFormatter::themeOptions()
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 200

Class

FieldTimerCountyFormatter
Plugin implementation of the 'field_timer_county' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

protected function themeOptions() {
  return [
    static::COUNTY_THEME_BLUE => $this
      ->t('Blue'),
    static::COUNTY_THEME_RED => $this
      ->t('Red'),
    static::COUNTY_THEME_GRAY => $this
      ->t('Gray'),
    static::COUNTY_THEME_BLACK => $this
      ->t('Black'),
  ];
}