You are here

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

Same name in this branch
  1. 10.0.x modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  2. 10.0.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_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  2. 8.5 modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  3. 8.6 modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  4. 8.7 modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  5. 8.8 modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  6. 10.3.x modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  7. 10.1.x modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()
  8. 10.2.x modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php \Drupal\social_group\Plugin\Action\SocialSendEmail::execute()

Executes the plugin.

Overrides SocialSendEmail::execute

File

modules/social_features/social_group/src/Plugin/Action/SocialSendEmail.php, line 37

Class

SocialSendEmail
Send email to group members.

Namespace

Drupal\social_group\Plugin\Action

Code

public function execute($entity = NULL) {

  /** @var \Drupal\group\Entity\GroupContentInterface $entity */
  return $entity
    ->getEntity()
    ->id();
}