Rendering Forms

{{ mayd_form(websiteContext, form, additionalData, renderOptions) }}
parameters
nametypedefaultdescription
websiteContextWebsiteRequestContextInterface
formFrontendForm
additionalDataarrayAdditional data to pass to the form while rendering.
renderOptions.formClassstring""Additional classes for the <form> tag.
renderOptions.formThemestring"..."The theme to use for rendering.
renderOptions.submitLabelstring"..."The label for the submit button. Will be translated in the form domain.

Form Theme

By default, the form theme from Mayd forms is used: @MaydForms/frontend/theme.html.twig.

You can configure to use your custom form theme (see above), but you should always extend the default theme.

Table of Contents