/** * Gets the markup that is to be outputted before the actual contents of the form. This method could be used for * even more manual control over outputting with a custom markup. * @return string */ public function getWrapBefore() { $dataFields = $this->getDataFieldsHTML(); $errors = join(array_map(function ($errorMsg) { return Form::renderFormError($errorMsg); }, $this->getFormErrors())); return "<form " . $this->getAttributesString() . ">" . $errors . $dataFields; }