public function TrumbaMainCalendarSpudBlock::blockSubmit in Trumba 2.x
Same name and namespace in other branches
- 8 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\BlockCode
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');
}