Skip to content

[Form] Allow custom "LabelGuesser" #40939

@ThomasLandauer

Description

@ThomasLandauer

Description
Right now, all form <label>s are generated by applying FormRenderer::humanize() to the field name. If the rules being applied there don't match your use case, there's no other way than to pass each single label string manually, right?

So I'm suggesting to allow creating something like a custom "LabelGuesser", to apply your own rules. In my case, I'd be looking for a way to just take the very field name as label - a "NullGuesser" so to say ;-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions