Introduce a configuration setting to show/hide cardinality message

Created on 19 February 2020, over 5 years ago
Updated 19 August 2025, about 1 month ago

Problem/Motivation

Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget displays a following message: You can select up to 1 media items (0 left). in case a field has cardinality 1 and there is already an entity selected.

In this case, this message does not improve UX IMO.

Proposed resolution

Introduce a boolean setting on the entity browser widget to show/hide cardinality messages.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

2.0

Component

Widget plugins

Created by

Live updates comments and jobs are added and updated live.
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