Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 303517

Make the allowed values of FieldLabelOptionsTrait into an enum

$
0
0

Problem/Motivation

Follow up from #2933924: Move \Drupal\field_ui\Form\EntityViewDisplayEditForm::getFieldLabelOptions() to a trait post from there

\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.

Steps to reproduce

TBD

Proposed resolution

make the allowed values into constants

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet


Viewing all articles
Browse latest Browse all 303517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>