/** * Return a "checked" attribute if the option is checked * * @param string $strOption The option to check * @param mixed $varValues One or more values to check against * * @return string The attribute or an empty string * * @deprecated Deprecated since Contao 4.0, to be removed in Contao 5.0. * Use Widget::optionChecked() instead. */ public static function optionChecked($strOption, $varValues) { trigger_error('Using Controller::optionChecked() has been deprecated and will no longer work in Contao 5.0. Use Widget::optionChecked() instead.', E_USER_DEPRECATED); return \Widget::optionChecked($strOption, $varValues); }