You are here

protected function FilterPluginBase::showValueForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::showValueForm()
  2. 9 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::showValueForm()

Shortcut to display the value form.

1 call to FilterPluginBase::showValueForm()
FilterPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
Provide the basic form which calls through to subforms.

File

core/modules/views/src/Plugin/views/filter/FilterPluginBase.php, line 334

Class

FilterPluginBase
Base class for Views filters handler plugins.

Namespace

Drupal\views\Plugin\views\filter

Code

protected function showValueForm(&$form, FormStateInterface $form_state) {
  $this
    ->valueForm($form, $form_state);
  if (empty($this->no_operator)) {
    $form['value']['#prefix'] = '<div class="views-group-box views-right-70">' . ($form['value']['#prefix'] ?? '');
    $form['value']['#suffix'] = ($form['value']['#suffix'] ?? '') . '</div>';
  }
}