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

8.0.x
webchick 2014-11-23 21:28:40 -08:00
parent eda7b8a8c5
commit df881baf55
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ use Drupal\Component\Utility\Unicode;
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 @@ class InOperator extends FilterPluginBase {
}
// 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) {