public function EntityReference::buildOptionsForm in Zircon Profile 8
Same name in this branch
- 8 core/modules/views/src/Plugin/views/style/EntityReference.php \Drupal\views\Plugin\views\style\EntityReference::buildOptionsForm()
- 8 core/modules/views/src/Plugin/views/row/EntityReference.php \Drupal\views\Plugin\views\row\EntityReference::buildOptionsForm()
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/style/EntityReference.php \Drupal\views\Plugin\views\style\EntityReference::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides StylePluginBase::buildOptionsForm
File
- core/
modules/ views/ src/ Plugin/ views/ style/ EntityReference.php, line 57 - Contains \Drupal\views\Plugin\views\style\EntityReference.
Class
- EntityReference
- EntityReference style plugin.
Namespace
Drupal\views\Plugin\views\styleCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$options = $this->displayHandler
->getFieldLabels(TRUE);
$form['search_fields'] = array(
'#type' => 'checkboxes',
'#title' => $this
->t('Search fields'),
'#options' => $options,
'#required' => TRUE,
'#default_value' => $this->options['search_fields'],
'#description' => $this
->t('Select the field(s) that will be searched when using the autocomplete widget.'),
'#weight' => -3,
);
}