You are here

public function SocialSendEmail::setContext in Open Social 8.9

Same name and namespace in other branches
  1. 8.8 modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::setContext()
  2. 10.3.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::setContext()
  3. 10.0.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::setContext()
  4. 10.1.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::setContext()
  5. 10.2.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::setContext()

File

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

Class

SocialSendEmail
An example action covering most of the possible options.

Namespace

Drupal\social_user\Plugin\Action

Code

public function setContext(array &$context) {
  parent::setContext($context);

  // @todo: make the batch size configurable.
  $context['batch_size'] = 25;
}