You are here

public function StopIssue::execute in Simplenews 8.2

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

Executes the plugin.

Overrides ExecutableInterface::execute

File

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

Class

StopIssue
Stops a newsletter issue.

Namespace

Drupal\simplenews\Plugin\Action

Code

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