public function NodeTabForm::submitTestMail in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitTestMail()
- 8 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.
\Drupal\Core\Form\FormStateInterface $form_state: Form state.
File
- src/
Form/ NodeTabForm.php, line 210
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'));
}