public function CalendarHeader::buildOptionsForm in Calendar 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/area/CalendarHeader.php \Drupal\calendar\Plugin\views\area\CalendarHeader::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides TokenizeAreaPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ area/ CalendarHeader.php, line 35
Class
- CalendarHeader
- Views area Calendar Header area.
Namespace
Drupal\calendar\Plugin\views\areaCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['content'] = [
'#title' => $this
->t('Heading'),
'#type' => 'textfield',
'#default_value' => $this->options['content'],
];
$form['pager_embed'] = [
'#title' => $this
->t('Use Pager'),
'#type' => 'checkbox',
'#default_value' => $this->options['pager_embed'],
];
}