public function CampaignMonitorListDeleteForm::submitForm in Campaign Monitor 8
Same name and namespace in other branches
- 8.2 src/Form/CampaignMonitorListDeleteForm.php \Drupal\campaignmonitor\Form\CampaignMonitorListDeleteForm::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/ CampaignMonitorListDeleteForm.php, line 78
Class
- CampaignMonitorListDeleteForm
- Defines a confirmation form for deleting mymodule data.
Namespace
Drupal\campaignmonitor\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
campaignmonitor_delete_list($this->id);
$url = Url::fromRoute('campaignmonitor.refresh_lists');
$form_state
->setRedirectUrl($url);
}