Add helper method to get enum instances of a multiple field

Created on 9 September 2025, 22 days ago

Problem/Motivation

It's already possible to get the enum instance of a single field item:

$entity->get('some_taxonomy_enum_field')->enum

but it's not yet possible to get all enum instances of a field item list.

Proposed resolution

Add a new helper method to the field item list class:

$entity->get('some_taxonomy_enum_field')->enums()
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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