add an enum for 'view'/'form' display types

Created on 12 November 2024, about 1 month ago

Problem/Motivation

There are methods like setDisplayConfigurable() and setDisplayOptions() which take a parameter which is only one of 'form' or 'view'. Anything else fails silently.

Making this take an enum would improve DX. (I for one always think its 'display' and not 'view.)

Steps to reproduce

Proposed resolution

Add an enum for this value.
Change all the methods that take this type of value to have a parameter type of string|ThisEnum
Add BC handling to complain about a string being passed

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component

entity system

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024