Use messenger interface instead of default implementation

Created on 23 June 2023, over 1 year ago
Updated 28 July 2023, over 1 year ago

Problem/Motivation

Can not delete a queue item.

Steps to reproduce

  1. Install the Info messages β†’ module
  2. Go to /admin/config/system/queue-ui
  3. Choose a queue and click the "Inspect" button to go to /admin/config/system/queue-ui/inspect/{queueName}
  4. Choose an item in queue and try to delete it
  5. On /admin/config/system/queue-ui/{queueName}/delete/{queueItem} you will get the following error: TypeError: Drupal\queue_ui\Form\ConfirmItemDeleteForm::__construct(): Argument #1 ($messenger) must be of type Drupal\Core\Messenger\Messenger, Drupal\info_messages\InfoMessenger given

Proposed resolution

In \Drupal\queue_ui\Form\ConfirmItemDeleteForm expect \Drupal\Core\Messenger\MessengerInterface insteadof \Drupal\Core\Messenger\Messenger

πŸ› Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine max-kuzomko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024