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