You are here

public function NodeTabForm::submitStop in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitStop()
  2. 8 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitStop()

Submit handler for stopping published newsletter issue.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: Form state.

File

src/Form/NodeTabForm.php, line 229

Class

NodeTabForm
Configure simplenews subscriptions of a user.

Namespace

Drupal\simplenews\Form

Code

public function submitStop(array &$form, FormStateInterface $form_state) {
  $this->spoolStorage
    ->deleteIssue($form_state
    ->get('node'));
}