function RebuildPermissionsForm::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.