Skip to content
Snippets Groups Projects
Commit df881baf authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2341461 by ashutoshsngh, esod, quietone: Remove usage of form_options_flatten()

parent eda7b8a8
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -12,6 +12,7 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\ViewExecutable;
use Drupal\Core\Form\OptGroup;
/**
* Simple filter to handle matching of multiple options selectable via checkboxes
......@@ -435,7 +436,7 @@ public function validate() {
}
// Some filter_in_operator usage uses optgroups forms, so flatten it.
$flat_options = form_options_flatten($this->valueOptions, TRUE);
$flat_options = OptGroup::flattenOptions($this->valueOptions);
// Remove every element which is not known.
foreach ($this->value as $value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment