public function WorkspaceActivateForm::buildForm in Workspace 8.2
Same name and namespace in other branches
- 8 src/Form/WorkspaceActivateForm.php \Drupal\workspace\Form\WorkspaceActivateForm::buildForm()
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 EntityConfirmFormBase::buildForm
File
- src/
Form/ WorkspaceActivateForm.php, line 85
Class
- WorkspaceActivateForm
- Handle activation of a workspace on administrative pages.
Namespace
Drupal\workspace\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
// Content entity forms do not use the parent's #after_build callback.
unset($form['#after_build']);
return $form;
}