public function Tid::submitOptionsForm in Drupal 9
Same name and namespace in other branches
- 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_defaultCode
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']);
}