You are here

public function GoogleImageSitemapDeleteForm::buildForm in Google Image Sitemap 1.0.x

Same name and namespace in other branches
  1. 8 src/Form/GoogleImageSitemapDeleteForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteForm::buildForm()
  2. 2.0.x src/Form/GoogleImageSitemapDeleteForm.php \Drupal\google_image_sitemap\Form\GoogleImageSitemapDeleteForm::buildForm()

Parameters

int $id: (optional) The ID of the item to be deleted.

Overrides ConfirmFormBase::buildForm

File

src/Form/GoogleImageSitemapDeleteForm.php, line 69

Class

GoogleImageSitemapDeleteForm
Defines a confirmation form for deleting mymodule data.

Namespace

Drupal\google_image_sitemap\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $id = NULL) {
  echo $id;
  die('here');
  $this->id = $id;
  return parent::buildForm($form, $form_state);
}