ActivitySendWorkerBase.php in Open Social 10.1.x
Same filename and directory in other branches
- 8.9 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8.2 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8.3 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8.4 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8.5 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8.6 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8.7 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 8.8 modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 10.3.x modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 10.0.x modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
- 10.2.x modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.php
Namespace
Drupal\activity_send\Plugin\QueueWorkerFile
modules/custom/activity_send/src/Plugin/QueueWorker/ActivitySendWorkerBase.phpView source
<?php
namespace Drupal\activity_send\Plugin\QueueWorker;
use Drupal\Core\Queue\QueueWorkerBase;
/**
* Provides base functionality for the ActivitySendWorkers.
*/
abstract class ActivitySendWorkerBase extends QueueWorkerBase {
/**
* Create queue item.
*
* @param string $queue_name
* The queue name.
* @param object $data
* The $data which should be stored in the queue item.
*/
protected function createQueueItem($queue_name, $data) {
$queue = \Drupal::queue($queue_name);
$queue
->createItem($data);
}
}
Classes
Name | Description |
---|---|
ActivitySendWorkerBase | Provides base functionality for the ActivitySendWorkers. |