Apply new coding standard for enums

Created on 10 February 2025, about 1 month ago

Problem/Motivation

The latest release of the Coder module is checking that enum cases are camel cased (ref. 📌 Enforce UpperCamel naming for class, enum, interface, trait + forbid upper case acronyms Active ). Our WebformElementDisplayOn enum is using uppercase, because this matches the GraphQL enum standard.

Proposed resolution

Define the enum cases using camelcase, but provide a method to return the uppercased versions to include in the GraphQL schema.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024