Symfony\Bundle\FrameworkBundle\Templating\Helper\FormHelper
FormHelper provides helpers to help display forms.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class FormHelper
extends Helper
{
- // members
- private FormRendererInterface $renderer;
- // Inherited members from Helper
- protected string $charset;
- // methods
- public void __construct()
- public void getName()
- public void setTheme()
- public string form()
- public string start()
- public string end()
- public string enctype()
- public string widget()
- public string row()
- public string label()
- public string errors()
- public string rest()
- public string block()
- public string csrfToken()
- public void humanize()
- // Inherited methods from Helper
- public void setCharset()
- public string getCharset()
Hierarchy
Members
Methods
public
- __construct()
- block() — Renders a block of the template.
- csrfToken() — Returns a CSRF token.
- enctype() — Renders the HTML enctype in the form tag, if necessary.
- end() — Renders the form end tag.
- errors() — Renders the errors of the given view.
- form() — Renders the HTML for a form.
- getName() — {@inheritdoc}
- humanize()
- label() — Renders the label of the given view.
- rest() — Renders views which have not already been rendered.
- row() — Renders the entire form field "row".
- setTheme() — Sets a theme for a given view.
- start() — Renders the form start tag.
- widget() — Renders the HTML for a given view.
Inherited from Symfony\Component\Templating\Helper\Helper
public
- getCharset() — Gets the default charset.
- setCharset() — Sets the default charset.