Move \Drupal\field_ui\Form\EntityViewDisplayEditForm::getFieldLabelOptions() to a trait

Created on 2 January 2018, over 6 years ago
Updated 23 June 2023, about 1 year ago

Problem/Motivation

\Drupal\field_ui\Form\EntityViewDisplayEditForm::getFieldLabelOptions() contains code that is essential to configuring a field formatter, with 4 magic keys, yet it is in a protected method on a single form implementation.

Proposed resolution

Move the method to a trait and make use of it in FieldBlock
Add a follow up to make the allowed values into constants

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Field 

Last updated 1 day ago

Created by

🇺🇸United States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024