You are here

public function Tid::submitOptionsForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php \Drupal\taxonomy\Plugin\views\argument_default\Tid::submitOptionsForm()

Provide the default form form for submitting options.

Overrides ArgumentDefaultPluginBase::submitOptionsForm

File

core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php, line 152

Class

Tid
Taxonomy tid default argument.

Namespace

Drupal\taxonomy\Plugin\views\argument_default

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state, &$options = []) {

  // Filter unselected items so we don't unnecessarily store giant arrays.
  $options['vids'] = array_filter($options['vids']);
}