public function NodeTabForm::submitTestMail in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitTestMail()
- 3.x src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitTestMail()
Submit handler for sending test mails.
Parameters
array $form: An associative array containing the structure of the form.
File
- src/
Form/ NodeTabForm.php, line 292
Class
- NodeTabForm
- Configure simplenews subscriptions of a user.
Namespace
Drupal\simplenews\FormCode
public function submitTestMail(array &$form, FormStateInterface $form_state) {
$this->mailer
->sendTest($form_state
->get('node'), $form_state
->get('test_addresses'));
}