Allow AjaxResponse to be altered

Created on 18 June 2019, over 5 years ago
Updated 7 May 2023, over 1 year ago

Feature request: I would like to be able to perform additional Ajax actions when a flag is triggered. It is currently possible to do that by extending ActionLinkController::generateResponse, but that forces all of my changes into a single file and I would like to put different functionality in different custom modules.

[EDIT: The override described above was made more difficult by changing generateResponse to private in f71774a2.]

While I could just as easily implement this feature in a custom module, I thought I would submit this as a patch first.

This feature request is essentially the same as #2911409: Allow AjaxResponse to be altered before it's sent โ†’ , credit should go to @jrockowitz. :)

โœจ Feature request
Status

RTBC

Version

4.0

Component

Flag core

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States akalata

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

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