Skip to content
Snippets Groups Projects
Commit c347f616 authored by Manuel Egío's avatar Manuel Egío
Browse files

Issue #3288407 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent 3f42b23e
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ name: Mail Entity Queue
description: Provides an entity queues based system to process mails.
package: Mail
core_version_requirement: ^8 || ^9
core_version_requirement: ^9 || ^10
type: module
configure: entity.mail_entity_queue.collection
......
......@@ -2,7 +2,7 @@ name: Mail Entity Queue ultimate cron
description: Integrates ultimate cron with the mail entity queue module.
package: Mail
core_version_requirement: ^8 || ^9
core_version_requirement: ^9 || ^10
type: module
dependencies:
......
......@@ -2,8 +2,8 @@
namespace Drupal\mail_entity_queue\Event;
use Symfony\Contracts\EventDispatcher\Event;
use Drupal\mail_entity_queue\Entity\MailEntityQueueItemInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Defines the mail queue item event.
......
......@@ -125,7 +125,8 @@ class MailEntityQueueItemListBuilder extends EntityListBuilder {
*/
protected function getEntityIds() {
$query = $this->getStorage()->getQuery()
->sort($this->entityType->getKey('id'), 'DESC');
->sort($this->entityType->getKey('id'), 'DESC')
->accessCheck();
// Only add the pager if a limit is specified.
if ($this->limit) {
......
......@@ -202,7 +202,7 @@ class DefaultMailEntityQueueProcessor extends PluginBase implements MailEntityQu
*/
protected function dispatchEvent(MailEntityQueueItemInterface $item, string $event_name) {
$event = new MailEntityQueueItemEvent($item);
$this->eventDispatcher->dispatch($event_name, $event);
$this->eventDispatcher->dispatch($event, $event_name);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment