def METHOD_NAME(self, field):
    options = {"label": field.label}
    if getattr(settings, "WAGTAILFORMS_HELP_TEXT_ALLOW_HTML", False):
        options["help_text"] = field.help_text
    else:
        options["help_text"] = conditional_escape(field.help_text)
    options["required"] = field.required
    options["initial"] = field.default_value
    return options