public function FacetsSerializer::buildOptionsForm in Facets 8
Provide a form to edit options for this plugin.
Overrides Serializer::buildOptionsForm
File
- modules/
facets_rest/ src/ Plugin/ views/ style/ FacetsSerializer.php, line 68
Class
- FacetsSerializer
- The style plugin for serialized output formats.
Namespace
Drupal\facets_rest\Plugin\views\styleCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['show_facets'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Show facets in the output'),
'#default_value' => $this->options['show_facets'],
];
}