You are here

public function SocialSendEmail::execute in Open Social 10.2.x

Same name in this branch
  1. 10.2.x modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  2. 10.2.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
Same name and namespace in other branches
  1. 8.9 modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
  2. 8.5 modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
  3. 8.6 modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
  4. 8.7 modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
  5. 8.8 modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
  6. 10.3.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
  7. 10.0.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()
  8. 10.1.x modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php \Drupal\social_user\Plugin\Action\SocialSendEmail::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

2 calls to SocialSendEmail::execute()
SocialEventManagersSendEmail::executeMultiple in modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php
Execute action on multiple entities.
SocialSendEmail::executeMultiple in modules/social_features/social_user/src/Plugin/Action/SocialSendEmail.php
Execute action on multiple entities.
1 method overrides SocialSendEmail::execute()
SocialSendEmail::execute in modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php
Executes the plugin.

File

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

Class

SocialSendEmail
An example action covering most of the possible options.

Namespace

Drupal\social_user\Plugin\Action

Code

public function execute($entity = NULL) {

  /** @var \Drupal\user\UserInterface $entity */
  return $entity
    ->id();
}