Allow changing of selected entities in Events::SELECTED

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

Problem/Motivation

For some reason, the $entities argument in WidgetBase::selectEntities() is empty when using a view widget. Thus, the entities in the event object dispatched in selectEntities() is kind of useless, as one cannot access the selected entities.

Hence it's a bit confusing why the event is dispatched in the first place. Shouldn't it allow to do something with the selected entities? Even more useful would even be to allow altering the selected entities in an event subscriber. However in the case described above, neither is possible.

Proposed resolution

Depends on the intended purpose of the event dispatching in WidgetBase::selectEntities().

💬 Support request
Status

Active

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