function WorkspaceActivateForm::buildForm

Overrides EntityConfirmFormBase::buildForm

File

core/modules/workspaces/src/Form/WorkspaceActivateForm.php, line 88

Class

WorkspaceActivateForm
Handle activation of a workspace on administrative pages.

Namespace

Drupal\workspaces\Form

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.