public function NodeTabForm::submitStop in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitStop()
- 3.x 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\FormCode
public function submitStop(array &$form, FormStateInterface $form_state) {
$this->spoolStorage
->deleteIssue($form_state
->get('node'));
}