Problem/Motivation
Drupal 11 requires classes that extend ConfigFormBase include the $typedConfigManager argument.
Drupal\menu_breadcrumb\Form\SettingsForm already includes the argument, but the order is incorrect.
See https://www.drupal.org/node/3404140
Steps to reproduce
- Install Drupal 11.
- Install menu_breadcrumb
- Notice the error below.
Fatal error: Type of Drupal\menu_breadcrumb\Form\SettingsForm::$typedConfigManager must be Drupal\Core\Config\TypedConfigManagerInterface (as in class Drupal\Core\Form\ConfigFormBase) in /var/www/html/docroot/modules/contrib/menu_breadcrumb/src/Form/SettingsForm.php on line 0
Proposed resolution
Change the order of the arguments in the SettingsForm constructor and create() method.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3485520-8.patch | 5.56 KB | smulvih2 |
| #4 | Screenshot from 2024-11-06 10-28-12.png | 74.71 KB | atul_ghate |
Issue fork menu_breadcrumb-3485520
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 #4
atul_ghate commentedI have fixed all the PHPCS issues, but the pipeline is still showing PHPCS warnings.(see attached screesnhot)
Comment #5
atul_ghate commentedComment #6
hatuhay commentedSet as critical, it breaks the site upon installing breaking the database if enabled with other modules leaving installation half the way.
Comment #7
marcoliverCan confirm, that the issue fork unbreaks the current 2.0.x state of the module.
Marking RTBC.
Comment #8
smulvih2Adding patch from MR to use in my project.
+1 this works for me, was getting critical error when running Drush during an upgrade.
Comment #9
xurizaemonThanks all, merged.
Comment #13
xurizaemonComment #16
xurizaemonComment #17
xurizaemon