EmailActivitySend.php in Open Social 8.5
Same filename and directory in other branches
- 8.9 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 8 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 8.2 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 8.3 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 8.4 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 8.6 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 8.7 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 8.8 modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 10.3.x modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 10.0.x modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 10.1.x modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
- 10.2.x modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.php
File
modules/custom/activity_send/modules/activity_send_email/src/Plugin/ActivitySend/EmailActivitySend.phpView source
<?php
namespace Drupal\activity_send_email\Plugin\ActivitySend;
use Drupal\activity_send\Plugin\ActivitySendBase;
/**
* Provides a 'EmailActivitySend' activity action.
*
* @ActivitySend(
* id = "email_activity_send",
* label = @Translation("Action that is triggered when a entity is created"),
* )
*/
class EmailActivitySend extends ActivitySendBase {
/**
* {@inheritdoc}
*/
public function create($entity) {
$data['entity_id'] = $entity
->id();
$queue = \Drupal::queue('activity_send_email_worker');
$queue
->createItem($data);
}
}
Classes
Name | Description |
---|---|
EmailActivitySend | Provides a 'EmailActivitySend' activity action. |