public function WorkspaceActivateForm::buildForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\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
- core/
modules/ workspaces/ src/ Form/ WorkspaceActivateForm.php, line 87
Class
- WorkspaceActivateForm
- Handle activation of a workspace on administrative pages.
Namespace
Drupal\workspaces\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;
}