public function ViewsAutorefreshArea::buildOptionsForm in Views Autorefresh D8 port 8
Provide a form to edit options for this plugin.
Overrides AreaPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ area/ ViewsAutorefreshArea.php, line 29
Class
- ViewsAutorefreshArea
- Defines an area plugin for the Autorefresh header.
Namespace
Drupal\views_autorefresh_d8\Plugin\views\areaCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['interval'] = [
'#type' => 'textfield',
'#title' => t('Interval to check for new items'),
'#default_value' => $this->options['interval'],
'#field_suffix' => 'milliseconds',
'#required' => TRUE,
];
}