Pay attention that the whole form needs still to be converted to the new
API like $this->options instead of $this->activeOptions.
}
/**
- * @see wcf\acp\form\DynamicOptionListForm::checkOption()
+ * @see wcf\acp\form\AbstractOptionListForm::checkOption()
*/
- protected function checkOption($optionName) {
- $option = $this->cachedOptions[$optionName];
- return ($option['searchable'] == 1 && !$option['disabled'] && ($option['visible'] == 3 || $option['visible'] < 2));
+ protected static function checkOption(Option $option) {
+ return ($option->searchable == 1 && !$option->disabled && ($option->visible == 3 || $option->visible < 2));
}
}