public function GoogleImageSitemapDeleteForm::submitForm in Google Image Sitemap 8
Same name and namespace in other branches
- 2.0.x src/Form/GoogleImageSitemapDeleteForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteForm::submitForm()
- 1.0.x src/Form/GoogleImageSitemapDeleteForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteForm::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/ GoogleImageSitemapDeleteForm.php, line 79
Class
- GoogleImageSitemapDeleteForm
- Defines a confirmation form for deleting mymodule data.
Namespace
Drupal\google_image_sitemap\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
mymodule_delete($this->id);
}