public function Section::buildOptionsForm in Workbench Access 8
Same name in this branch
- 8 src/Plugin/views/filter/Section.php \Drupal\workbench_access\Plugin\views\filter\Section::buildOptionsForm()
- 8 src/Plugin/views/field/Section.php \Drupal\workbench_access\Plugin\views\field\Section::buildOptionsForm()
Default options form that provides the label widget that all fields should have.
Overrides PrerenderList::buildOptionsForm
File
- src/
Plugin/ views/ field/ Section.php, line 54
Class
- Section
- Field handler to present the section assigned to the node.
Namespace
Drupal\workbench_access\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['make_link'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Link to Section entity'),
'#default_value' => $this->options['make_link'],
];
return $form;
}