public function GoogleImageSitemapDeleteForm::submitForm in Google Image Sitemap 1.0.x
Same name and namespace in other branches
- 8 src/Form/GoogleImageSitemapDeleteForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteForm::submitForm()
- 2.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);
}