Problem/Motivation
On Drupal 11.4, the node manage form display white screens. The issue is:
Fatal error: Declaration of Drupal\form_mode_manager\Form\FormModeManagerDisplayEditForm::submitForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\field_ui\Form\EntityFormDisplayEditForm::submitForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state): void in /var/www/html/web/modules/form_mode_manager/src/Form/FormModeManagerDisplayEditForm.php on line 83
Steps to reproduce
Create a content type. Navigate to the Entity form display edit form for the entity type.
Proposed resolution
Add void to the return type for FormModeManagerDisplayEditForm::submitForm
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3608797-mr27-7.patch | 1.19 KB | weseze |
Issue fork form_mode_manager-3608797
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
miwayha commentedComment #4
yfiervil commentedComment #5
johnatas commentedHey,
MR !27 tested successfully on Drupal 11.4.1 with Form mode manager 3.1.0.
RTBC++
Comment #6
rgristroph commentedI have also tested this on Drupal 11.4.1 with form mode manager 3.1.0 , and it appears to fix the issues I had. Thanks for this work ! I also vote for RTBC.
Comment #7
weseze commentedStatic patch based on MR27 for use in composer patches workflow.
Comment #8
papagrandeI also ran into this and can confirm the patch works on Drupal 11.4.6.
RTBC++.