public function ExpenseRevisionRevertForm::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_expense/ src/ Form/ ExpenseRevisionRevertForm.php, line 89
Class
- ExpenseRevisionRevertForm
- Provides a form for reverting a Expense revision.
Namespace
Drupal\pm_expense\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $pm_expense_revision = NULL) {
$this->revision = $this->ExpenseStorage
->loadRevision($pm_expense_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}