Add support for Enum Field

Created on 14 April 2025, 18 days ago

Problem/Motivation

The Enum Field module allows you to create List fields (integer/string) that get their allowed values from a PHP enum class. It also provides shortcuts to easily extract enum instances from field items and field item lists, for use in custom code:

$entity->get('field_some_enum')->enum
$entity->get('field_some_enum')->enums()

Proposed resolution

Add support for enum fields.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Comments & Activities

Production build 0.71.5 2024