/** * Gets a view for the captcha part * @param zibo\library\html\form\Form $form Form with the captcha added * @return zibo\core\view\HtmlView */ public function getCaptchaView(Form $form) { $formId = $form->getId(); $error = null; if (array_key_exists($formId, $this->errors)) { $error = $this->errors[$formId]; } return new RecaptchaView($this->publicKey, $error); }