src/fieldwork/Form.php
public function getWrapBefore ()
    {
        $dataFields = $this->getDataFieldsHTML();
        $errors     = join(array_map(function ($errorMsg) {
            return Form::renderFormError($errorMsg);
        }, $this->getFormErrors()));
        return "<form " . $this->getAttributesString() . ">" . $errors . $dataFields;
    }
public function getWrapBefore ()
    {
        $dataFields = $this->getDataFieldsHTML();
        $errors     = join(array_map(function ($errorMsg) {
            return Form::renderFormError($errorMsg);
        }, $this->getFormErrors()));
        return "<form " . $this->getAttributesString() . ">" . $errors . $dataFields;
    }
public function getWrapBefore ( ) { $ dataFields = $ this -> getDataFieldsHTML ( ) ; $ errors = join ( array_map ( function ( $ errorMsg ) { return Form :: renderFormError ( $ errorMsg ) ; } , $ this -> getFormErrors ( ) ) ) ; return "<form " . $ this -> getAttributesString ( ) . ">" . $ errors . $ dataFields ; }
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
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 .