public function EntityReferenceFilterViewResult::buildExtraOptionsForm in Views Reference Filter 8
Provide a form for setting options.
Overrides HandlerBase::buildExtraOptionsForm
File
- src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php, line 155
Class
- EntityReferenceFilterViewResult
- Filter by entity id using items got from the another view..
Namespace
Drupal\entityreference_filter\Plugin\views\filterCode
public function buildExtraOptionsForm(&$form, FormStateInterface $form_state) {
// @todo autocomplete support
$form['type'] = [
'#type' => 'select',
'#title' => $this
->t('Selection type'),
'#options' => [
'select' => $this
->t('Dropdown'),
'textfield' => $this
->t('Autocomplete'),
],
'#default_value' => $this->options['type'],
'#disabled' => TRUE,
];
}