Former\Form\Group::getErrors PHP Method

getErrors() public method

Get the errors for the group
public getErrors ( ) : string
return string
    public function getErrors()
    {
        $errors = '';
        if (!self::$opened) {
            // for non-custom groups, normal error handling applies
            $errors = $this->app['former']->getErrors();
        } elseif (!empty($this->validations)) {
            // error handling only when validations specified for custom groups
            foreach ($this->validations as $validation) {
                $errors .= $this->app['former']->getErrors($validation);
            }
        }
        return $errors;
    }