src/View/Helper/Form/Form.php
public function render(FormInterface $form)
    {
        if (\method_exists($form, 'prepare')) {
            $form->prepare();
        }

        $formContent = '';

        foreach ($form as $element) {
            $formContent .= $this->getView()->formRow($element);
        }

        return $formContent;
    }
public function render(FormInterface $form)
    {
        if (\method_exists($form, 'prepare')) {
            $form->prepare();
        }

        $formContent = '';

        foreach ($form as $element) {
            $formContent .= $this->getView()->formRow($element);
        }

        return $formContent;
    }
Render a form from the provided $form,

@param  FormInterface $form
@return string