You are here

public function JqueryCountdownTimerBlock::blockSubmit in jQuery Countdown Timer 8

Overrides BlockPluginTrait::blockSubmit

File

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

Class

JqueryCountdownTimerBlock
Provides a "Jquery Countdown Timer" block.

Namespace

Drupal\jquery_countdown_timer\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $dt = $form_state
    ->getValue('jquery_countdown_timer_date');
  $this->configuration['countdown_datetime'] = $dt
    ->format('Y-m-d H:i:s');
  $this->configuration['font_size'] = $form_state
    ->getValue('jquery_countdown_timer_font_size');
}