You are here

public function SocialSendEmail::createQueueItem in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.1.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::createQueueItem()
  2. 10.2.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::createQueueItem()

Create Queue Item.

Parameters

string $name: The name of the queue.

array $data: The queue data.

1 call to SocialSendEmail::createQueueItem()
SocialSendEmail::executeMultiple in modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php
Execute action on multiple entities.
1 method overrides SocialSendEmail::createQueueItem()
SocialSendEmailAdvancedQueue::createQueueItem in modules/custom/social_advanced_queue/src/Plugin/Action/SocialSendEmailAdvancedQueue.php
Create Queue Item.

File

modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php, line 191

Class

SocialSendEmail
An example action covering most of the possible options.

Namespace

Drupal\social_user\Plugin\Action

Code

public function createQueueItem($name, array $data) {

  // Put the $data in the queue item.

  /** @var \Drupal\Core\Queue\QueueInterface $queue */
  $queue = $this->queue
    ->get($name);
  $queue
    ->createItem($data);
}