You are here

protected function PluginId::valueForm in Plugin 8.2

Options form subform for setting options.

This should be overridden by all child classes and it must define $form['value']

Overrides InOperator::valueForm

See also

buildOptionsForm()

File

src/Plugin/views/filter/PluginId.php, line 78

Class

PluginId
Provides a Views filter for plugin IDs.

Namespace

Drupal\plugin\Plugin\views\filter

Code

protected function valueForm(&$form, FormStateInterface $form_state) {
  parent::valueForm($form, $form_state);

  // Apply cacheability metadata, because the parent class does not.
  $this
    ->getCacheableMetadata()
    ->applyTo($form);
  return $form;
}