public function OrganizationRevisionDeleteForm::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_organization/ src/ Form/ OrganizationRevisionDeleteForm.php, line 89
Class
- OrganizationRevisionDeleteForm
- Provides a form for deleting a Organization revision.
Namespace
Drupal\pm_organization\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $pm_organization_revision = NULL) {
$this->revision = $this->OrganizationStorage
->loadRevision($pm_organization_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}