public function EventRevisionDeleteForm::buildForm in Event 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/ EventRevisionDeleteForm.php, line 96
Class
- EventRevisionDeleteForm
- Provides a form for deleting a Event revision.
Namespace
Drupal\event\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $event_revision = NULL) {
$this->revision = $this->eventStorage
->loadRevision($event_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}