function RebuildPermissionsForm::submitForm

Same name in other branches
  1. 9 core/modules/node/src/Form/RebuildPermissionsForm.php \Drupal\node\Form\RebuildPermissionsForm::submitForm()
  2. 8.9.x core/modules/node/src/Form/RebuildPermissionsForm.php \Drupal\node\Form\RebuildPermissionsForm::submitForm()
  3. 10 core/modules/node/src/Form/RebuildPermissionsForm.php \Drupal\node\Form\RebuildPermissionsForm::submitForm()

Overrides FormInterface::submitForm

File

core/modules/node/src/Form/RebuildPermissionsForm.php, line 54

Class

RebuildPermissionsForm
Form for rebuilding permissions.

Namespace

Drupal\node\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    node_access_rebuild(TRUE);
    $form_state->setRedirectUrl($this->getCancelUrl());
}

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