---
title: "Feature: Dispatch PSR-14 event ModifySelectedContractsEvent in ProfilesController::selectedContractsAction()"
manual: "Academic Profiles"
version: "3.0"
permalink: "https://docs.typo3.org/permalink/fgtclb/academic-persons:feature-1746706200@3.0"
source: "Changelog/2.1/Feature-DispatchPSR-14EventModifySelectedContractsEventInProfilesControllerselectedContractsAction.rst"
rendered: "2026-10-26T17:55:22+00:00"
---

# Feature: Dispatch PSR-14 event `ModifySelectedContractsEvent` in `ProfilesController::selectedContractsAction()` {#feature-1746706200}

## Description {#description}

`ProfileController::selectedContractsAction()` dispatches now the new PSR-14
`ModifySelectedContractsEvent`.

The event provides following methods:

-   `getContracts(): QueryResultInterface` return current result set.
-   `setContracts(QueryResultInterface $contracts): 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
