You are here

protected function FieldTimerCountdownLedFormatter::dayOptions in Field Timer 2.x

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

Gets max number of days options.

Return value

array Array of days options.

1 call to FieldTimerCountdownLedFormatter::dayOptions()
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 200

Class

FieldTimerCountdownLedFormatter
Plugin implementation of the 'field_timer_countdown' formatter.

Namespace

Drupal\field_timer\Plugin\Field\FieldFormatter

Code

protected function dayOptions() {
  return [
    static::LED_DAY_DIGITS_ONE => 9,
    static::LED_DAY_DIGITS_TWO => 99,
    static::LED_DAY_DIGITS_THREE => 999,
    static::LED_DAY_DIGITS_FOUR => 9999,
  ];
}