You are here

protected function ContextualBundle::operatorForm in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/filter/ContextualBundle.php \Drupal\entity_browser\Plugin\views\filter\ContextualBundle::operatorForm()

Options form subform for setting the operator.

This may be overridden by child classes, and it must define $form['operator'];

Overrides FilterPluginBase::operatorForm

See also

buildOptionsForm()

File

src/Plugin/views/filter/ContextualBundle.php, line 118

Class

ContextualBundle
Filter class which allows filtering by entity bundles.

Namespace

Drupal\entity_browser\Plugin\views\filter

Code

protected function operatorForm(&$form, FormStateInterface $form_state) {

  // Don't allow selecting "not in".
  $form['operator'] = [
    '#type' => 'hidden',
    '#value' => 'in',
  ];
  return $form;
}