public function SitewideAlertRevisionDeleteForm::buildForm in Sitewide Alert 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfirmFormBase::buildForm
File
- src/
Form/ SitewideAlertRevisionDeleteForm.php, line 108
Class
- SitewideAlertRevisionDeleteForm
- Provides a form for deleting a Sitewide Alert revision.
Namespace
Drupal\sitewide_alert\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $sitewide_alert_revision = NULL) {
$this->revision = $this->SitewideAlertStorage
->loadRevision($sitewide_alert_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}