/** * Returns HTML with select options for searchable column * * @return string */ private function _optionsHTML() { $result = ''; foreach ($this->options() as $key => $label) { $selected = ResourceTable::getSearchValue($this->index()) == $key ? ' selected="selected"' : ''; $result .= '<option value="' . $key . '"' . $selected . '>' . $label . '</option>'; } return $result; }