Add simple "Autocomplete" Widget selector plugin for entities

Created on 14 May 2020, almost 5 years ago
Updated 4 August 2023, over 1 year ago

Add simple "Autocomplete" Widget selector plugin for entity selection.

Problem/Motivation

We required a simple entity browser which allows to

  1. Add new entities
  2. Select existing entities

While there is a simple entity creation form widget for the first case (add), there is no simple select widget for the second case (select existing entities). You are forced to create a view for that, even if a regular autocomplete would be enough.

While you could use complex entity reference form widget for entity_reference fields, there is no such solution for Entity browsers used in entity_embed. So this is most useful for users of entity_embed with entity_browser and even more if you need a consistent UX for entity_embed and entity reference fields using the same widgets for referencing / creating entities.

Especially when creating a module with config for entity_browser included, the force to use a view for simple entity selection leads to further dependencies on views and more unwanted complexity.

Proposed resolution

Add a simple "Autocomplete" widget selector plugin which filters on selected entities and bundle types, identically to to Core entity reference field autocomplete.

Remaining tasks

Discuss
Plan
Create patch
Review
Release

User interface changes

Further widget selector "Entity autocomplete: Search entities by their type / bundle."

API changes

To discuss

Data model changes

To discuss

Release notes snippet

To discuss

✨ Feature request
Status

Closed: duplicate

Version

2.0

Component

Widget selector plugins

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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