You are here

public function FieldMappingFilter::settingsForm in Gutenberg 8

Define settings for filter.

Overrides FilterBase::settingsForm

File

src/Plugin/Filter/FieldMappingFilter.php, line 78

Class

FieldMappingFilter
Class FieldMappingFilter.

Namespace

Drupal\gutenberg\Plugin\Filter

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
  $form['enable_filter'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Enabled'),
    '#default_value' => $this->settings['enable_filter'],
  ];
  return $form;
}