public function WorkspaceUnarchiveForm::buildForm in Workspace 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/ WorkspaceUnarchiveForm.php, line 74
Class
- WorkspaceUnarchiveForm
- Handle workspace unarchive on administrative pages.
Namespace
Drupal\workspace\FormCode
public function buildForm(array $form, FormStateInterface $form_state, WorkspaceInterface $workspace = NULL) {
$this->workspace = $workspace;
return parent::buildForm($form, $form_state);
}