public function TrumbaMainCalendarSpudBlock::blockForm in Trumba 2.x
Same name and namespace in other branches
- 8 src/Plugin/Block/TrumbaMainCalendarSpudBlock.php \Drupal\trumba\Plugin\Block\TrumbaMainCalendarSpudBlock::blockForm()
Overrides TrumbaBlockBase::blockForm
File
- src/
Plugin/ Block/ TrumbaMainCalendarSpudBlock.php, line 20
Class
- TrumbaMainCalendarSpudBlock
- Provides a 'TrumbaMainCalendarSpudBlock' block.
Namespace
Drupal\trumba\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$form = parent::blockForm($form, $form_state);
$form['trumba_main_calendar_open_events'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Open events in new window'),
'#description' => $this
->t(''),
'#default_value' => isset($this->configuration['trumba_main_calendar_open_events']) ? $this->configuration['trumba_main_calendar_open_events'] : '',
'#weight' => '3',
];
return $form;
}