Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2017 at 09:04 UTC
Updated:
9 Oct 2017 at 16:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrockowitz commentedThe solution is going to be to create a WebformViewResponse object which can be altered via an event subscriber.
@see https://www.linkedin.com/pulse/how-alter-ajax-commands-view-response-dru...
Comment #5
jrockowitz commentedThe attached patch contains WebformSubmissionAjaxResponse object which is returned by all WebformSubmissionForm ajax responses.
Please note: Drupal is moving away from alter hooks and EventSubscribers are the recommended way to alter a request and/or a response.
Comment #7
jrockowitz commentedI committed the patch. Please download the latest dev release to review.