You are here

function FilterPluginBase::show_operator_form in Views (for Drupal 7) 8.3

Shortcut to display the operator form.

1 call to FilterPluginBase::show_operator_form()
FilterPluginBase::buildOptionsForm in lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

File

lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, line 265
Definition of Drupal\views\Plugin\views\filter\FilterPluginBase.

Class

FilterPluginBase
Base class for filters.

Namespace

Drupal\views\Plugin\views\filter

Code

function show_operator_form(&$form, &$form_state) {
  $this
    ->operator_form($form, $form_state);
  $form['operator']['#prefix'] = '<div class="views-group-box views-left-30">';
  $form['operator']['#suffix'] = '</div>';
}