You are here

public function SendIssue::execute in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/SendIssue.php \Drupal\simplenews\Plugin\Action\SendIssue::execute()
  2. 8 src/Plugin/Action/SendIssue.php \Drupal\simplenews\Plugin\Action\SendIssue::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

File

src/Plugin/Action/SendIssue.php, line 23

Class

SendIssue
Sends a newsletter issue.

Namespace

Drupal\simplenews\Plugin\Action

Code

public function execute($node = NULL) {
  \Drupal::service('simplenews.spool_storage')
    ->addIssue($node);
}