You are here

public function JqueryCountdownTimerBlock::defaultConfiguration in jQuery Countdown Timer 8

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/JqueryCountdownTimerBlock.php, line 23

Class

JqueryCountdownTimerBlock
Provides a "Jquery Countdown Timer" block.

Namespace

Drupal\jquery_countdown_timer\Plugin\Block

Code

public function defaultConfiguration() {
  $font_size = 28;
  $dt = new DateTime('tomorrow');
  $countdown_datetime = $dt
    ->format('Y-m-d H:i:s');
  return [
    'countdown_datetime' => $countdown_datetime,
    'font_size' => $font_size,
  ];
}