protected function resetSearchGroupChoices(array &$filteredChoices, $group, array $choices)
    {
        foreach ($choices as $key => $choice) {
            list($id, $label) = $this->getIdAndLabel($key, $choice);

            if (false !== stripos($label, $this->search) && !\in_array($id, $this->getIds())) {
                if (!array_key_exists($group, $filteredChoices)) {
                    $filteredChoices[$group] = [];
                }

                $filteredChoices[$group][$key] = $choice;
            }
        }
    }
protected function resetSearchGroupChoices(array &$filteredChoices, $group, array $choices)
    {
        foreach ($choices as $key => $choice) {
            list($id, $label) = $this->getIdAndLabel($key, $choice);

            if (false !== stripos($label, $this->search) && !\in_array($id, $this->getIds())) {
                if (!array_key_exists($group, $filteredChoices)) {
                    $filteredChoices[$group] = [];
                }

                $filteredChoices[$group][$key] = $choice;
            }
        }
    }
protected function resetSearchGroupChoices ( array & $ filteredChoices , $ group , array $ choices ) { foreach ( $ choices as $ key => $ choice ) { list ( $ id , $ label ) = $ this -> getIdAndLabel ( $ key , $ choice ) ; if ( false !== stripos ( $ label , $ this -> search ) && ! \ in_array ( $ id , $ this -> getIds ( ) ) ) { if ( ! array_key_exists ( $ group , $ filteredChoices ) ) { $ filteredChoices [ $ group ] = [ ] ; } $ filteredChoices [ $ group ] [ $ key ] = $ choice ; } } }
Reset the search group choices.

@param array  $filteredChoices The filtered choices
@param string $group           The group name
@param array  $choices         The choices
Reset the search group choices .