public function ProjectRevisionRevertForm::buildForm in Drupal PM (Project Management) 4.x
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
- modules/
pm_project/ src/ Form/ ProjectRevisionRevertForm.php, line 89
Class
- ProjectRevisionRevertForm
- Provides a form for reverting a Project revision.
Namespace
Drupal\pm_project\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $pm_project_revision = NULL) {
$this->revision = $this->ProjectStorage
->loadRevision($pm_project_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}