Move form creation in a protected method from ContactController::content() to ContactController::getForm()

Created on 7 March 2023, almost 2 years ago
Updated 11 March 2023, almost 2 years ago

Problem/Motivation

It's very difficult to alter some custom fields to Form and processing those fields because of complexity module.
The altering new elements to form is quite simple but processing those elements not because we would need override submit form and there is a lot of custom code. We can do it by creating route event subscriber and use our own controller but in this case we need to duplicate a lot of code. So my proposal is move form creation into a protected method in ContactController.

Proposed resolution

Move form creation in a protected method from ContactController::content() to ContactController::getForm() in order to easy override Form.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇵🇱Poland crafter

Live updates comments and jobs are added and updated live.
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