Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to display enums #7708

Merged
merged 2 commits into from Jan 17, 2022
Merged

Add support to display enums #7708

merged 2 commits into from Jan 17, 2022

Conversation

franmomu
Copy link
Member

Subject

This PR tries to add support to display enums (backed enums) in the lists and show templates. It displays the name of the enum which I think is the usual behaviour, an option can be added to display the value instead.

Note: The first commit is about removing duplicated code, extracting the list of templates to an internal constant, I chose to move them to TemplateRegistryInterface, but any other suggestion is welcome.

I am targeting this branch, because these changes are BC.

Changelog

### Added
- Added support to display backed enums in lists and show templates

@franmomu franmomu added the minor label Jan 15, 2022
@VincentLanglet
Copy link
Member

Take a look at sonata-project/dev-kit#1876 for the ci

@VincentLanglet
Copy link
Member

@franmomu If you rebase the lint build will be fixed.

@VincentLanglet VincentLanglet requested a review from a team January 17, 2022 17:13
@franmomu franmomu merged commit 0b92389 into sonata-project:4.x Jan 17, 2022
@franmomu franmomu deleted the enum branch January 17, 2022 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants