Problem/Motivation
Seems to just be an issue trying to send a success message.
Message Error: Call to undefined method Drupal\Core\Messenger\Messenger::addSuccess() in Drupal\menu_export\Form\MenuImportForm->submitForm() (line 94 of /var/www/web/modules/contrib/menu_export/src/Form/MenuImportForm.php)
Steps to reproduce
Import a menu in D9
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | import_error-3183188-2.patch | 594 bytes | jamesoakley |
Comments
Comment #2
jamesoakleyI can confirm the problem.
The reason is that the correct method to call on the Messenger class is addStatus, not addSuccess.
The attached patch fixes it. Please can someone check and then mark this as RTBC. Thanks
Comment #4
joseph.olstadCredited, thanks!