---
title: "Feature: Dispatch PSR-14 event ModifySelectedProfilesEvent in ProfilesController::selectedProfilesAction()"
manual: "Academic Profiles"
version: "main"
source: "Changelog/2.1/Feature-DispatchPSR-14EventModifySelectedProfilesEventInProfilesControllerselectedProfilesAction.rst"
rendered: "2026-10-02T20:47:49+00:00"
---

# Feature: Dispatch PSR-14 event `ModifySelectedProfilesEvent` in `ProfilesController::selectedProfilesAction()` {#feature-1746706300}

## Description {#description}

`ProfileController::selectedProfilesAction()` dispatches now the new PSR-14
`ModifySelectedProfilesEvent` instead of erroneous copied listAction event
`ModifyListProfilesEvent`, which is no longer dispatched. That should not
be that of an issue for most implementations.

The event provides following methods:

-   `getProfiles(): QueryResultInterface` return current result set.
-   `setProfiles(QueryResultInterface $profiles): void` to allow setting a custom
    resultset.
-   `getView(): FluidViewInterface|CoreViewInterface` return the current view to
    allow assigning custom values to the view.
-   `getPluginControllerActionContext(): PluginControllerActionContextInterface`
    to provide more context information
