public function SectionId::buildOptionsForm in Workbench Access 8
Same name in this branch
- 8 src/Plugin/views/filter/SectionId.php \Drupal\workbench_access\Plugin\views\filter\SectionId::buildOptionsForm()
- 8 src/Plugin/views/field/SectionId.php \Drupal\workbench_access\Plugin\views\field\SectionId::buildOptionsForm()
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
Overrides FilterPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ filter/ SectionId.php, line 80
Class
- SectionId
- Filter by assigned section.
Namespace
Drupal\workbench_access\Plugin\views\filterCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['output_format'] = [
'#type' => 'select',
'#title' => $this
->t('Output format'),
'#options' => [
'label' => $this
->t('Section label'),
'id' => $this
->t('Section id'),
],
'#default_value' => $this->options['output_format'],
];
}