/** * URL validator: is control's value valid URL? * @param TextBase * @return bool */ public static function validateUrl(TextBase $control) { return Validators::isUrl($control->getValue()) || Validators::isUrl('http://' . $control->getValue()); }