SocialSendEmailAdvancedQueue.php in Open Social 10.3.x
File
modules/custom/social_advanced_queue/src/Plugin/Action/SocialSendEmailAdvancedQueue.php
View source
<?php
namespace Drupal\social_advanced_queue\Plugin\Action;
use Drupal\social_user\Plugin\Action\SocialSendEmail;
use Drupal\advancedqueue\Entity\Queue;
use Drupal\advancedqueue\Job;
class SocialSendEmailAdvancedQueue extends SocialSendEmail {
public function createQueueItem($name, array $data) {
$job = Job::create($name, $data);
if ($job instanceof Job) {
$queue = Queue::load('default');
$queue
->enqueueJob($job);
}
}
}