public function NodeTabForm::submitForm in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitForm()
- 8 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ NodeTabForm.php, line 217
Class
- NodeTabForm
- Configure simplenews subscriptions of a user.
Namespace
Drupal\simplenews\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->spoolStorage
->addIssue($form_state
->get('node'));
}