Skip to content

[Form] Fix documentation of "pattern" option in DateType #1546

Closed
@webmozart

Description

@webmozart

The documentation of the option "pattern" is wrong. It states:

This option is only relevant when the widget is set to choice. The default pattern is based off the format option, and tries to match the characters M, d, and y in the format pattern. If no match is found, the default is the string {{ year }}-{{ month }}-{{ day }}. Tokens for this option include:

This is not the case. The pattern of the displayed fields is controlled by the option "format", and by "format" only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FormactionableClear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions