Problem/Motivation

In the field selection prefer the machine name and add the label in brackets. The labels are translated and not very consistent. Instead the machine name should be used and ordered alphabetically.

$fieldDefinition->getName() . ' ("' . $fieldDefinition->getLabel() . '")';

Currently manually searching the right entry costs a lot of time.

Steps to reproduce

Proposed resolution

Show
field_xyz (XYZ)
instead of
XYZ (field_xyz)
in the select and order the values alphabetically by the machine name (already the case probably)

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#9 field_formatter-field-selection.png55.58 KBanybody
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

anybody’s picture

Issue summary: View changes
anybody’s picture

Status: Active » Needs review

Let's see if this works as expected and if tests are failing now.

anybody’s picture

Issue summary: View changes
anybody’s picture

Works as expected now and I think it's always used by "technical people", so this should be helpful and speed up field selection a lot.

anybody’s picture

Issue summary: View changes
StatusFileSize
new55.58 KB
anybody’s picture

Issue summary: View changes
thomas.frobieter’s picture

Status: Needs review » Reviewed & tested by the community

LGTM

anybody’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • anybody committed 5f05215c on 3.x
    feat: #3578559 In the field selection prefer the machine name and add...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.