Newscoop\Form\Decorator\Form::render PHP Method

render() public method

Replaces $content entirely from currently set element.
public render ( string $content ) : string
$content string
return string
    public function render($content)
    {
        $form = $this->getElement();
        $view = $form->getView();
        if (null === $view) {
            return $content;
        }
        $helper = $this->getHelper();
        $attribs = $this->getOptions();
        $name = '';
        return $view->{$helper}($name, $attribs, $content);
    }