You are here

public function TrumbaMainCalendarSpudBlock::blockSubmit in Trumba 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Block/TrumbaMainCalendarSpudBlock.php \Drupal\trumba\Plugin\Block\TrumbaMainCalendarSpudBlock::blockSubmit()

Overrides TrumbaBlockBase::blockSubmit

File

src/Plugin/Block/TrumbaMainCalendarSpudBlock.php, line 36

Class

TrumbaMainCalendarSpudBlock
Provides a 'TrumbaMainCalendarSpudBlock' block.

Namespace

Drupal\trumba\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  parent::blockSubmit($form, $form_state);
  $this->configuration['trumba_main_calendar_open_events'] = $form_state
    ->getValue('trumba_main_calendar_open_events');
}