Deprecate EnforcedResponseException support

Created on 1 November 2014, about 10 years ago
Updated 27 February 2024, 10 months ago

Problem/Motivation

Follow-up to #2230121: Remove exit() from FormBuilder β†’ and πŸ“Œ Allow both AJAX and non-AJAX forms to POST to dedicated URLs Postponed .

Drupal currently supports throwing an exception to exit the code flow and force an immediate redirect. This was implemented largely as a stop gap to allow the removal of direct response rendering and exits from core API's allowing better leverage of Symfony's HTTP stack.

Those API's should be refactored to allow common exit flows or redirecting without throwing an exception and then the Exception and its handling can hopefully be deprecated and retired.

Remaining tasks

User interface changes

N/A

API changes

πŸ“Œ Task
Status

Postponed

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¨πŸ‡­Switzerland znerol

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

  • DrupalWTF

    Worse Than Failure. Approximates the unpleasant remark made by Drupal developers when they first encounter a particular (mis)feature.

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