public function EmailActivitySend::create in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8.2 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8.3 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8.4 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8.5 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8.6 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8.7 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 8.8 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 10.3.x modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 10.0.x modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
- 10.2.x modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php \Drupal\activity_send_email\Plugin\ActivitySend\EmailActivitySend::create()
Create a new item in queue on the action with some logic behind it.
Overrides ActivitySendInterface::create
1 method overrides EmailActivitySend::create()
- EmailActivitySendAdvancedQueue::create in modules/
custom/ social_advanced_queue/ src/ Plugin/ ActivitySend/ EmailActivitySendAdvancedQueue.php - Create a new item in queue on the action with some logic behind it.
File
- modules/
custom/ activity_send/ modules/ activity_send_email/ src/ Plugin/ ActivitySend/ EmailActivitySend.php, line 20
Class
- EmailActivitySend
- Provides a 'EmailActivitySend' activity action.
Namespace
Drupal\activity_send_email\Plugin\ActivitySendCode
public function create($entity) {
$data['entity_id'] = $entity
->id();
$queue = \Drupal::queue('activity_send_email_worker');
$queue
->createItem($data);
}