Move delete item to its own protected method

Created on 14 May 2025, 3 months ago
Updated 14 July 2025, about 1 month ago

Problem/Motivation

I'm using the queue_stats module which expects a $item->created property to exist. I would like to move the delete item code

$queue = $this->queueFactory->get($row->get('queue_name'));
$item = (object) ['item_id' => $row->get('item_id')];
$queue->deleteItem($item);

to its own protected deleteItem method on Queue source polugin so I can override it in my source plugin extending it. Since QueueItemDeleteSubscriber is getting the source plugin to check instanceof, maybe it can call the method there as well.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mrconnerton

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024