protected function FieldTimerCountdownLedFormatter::dayOptions in Field Timer 8
Same name and namespace in other branches
- 2.x 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\FieldFormatterCode
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,
  ];
}