function RebuildPermissionsForm::submitForm
Same name in other branches
- 8.9.x core/modules/node/src/Form/RebuildPermissionsForm.php \Drupal\node\Form\RebuildPermissionsForm::submitForm()
- 10 core/modules/node/src/Form/RebuildPermissionsForm.php \Drupal\node\Form\RebuildPermissionsForm::submitForm()
- 11.x 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\FormCode
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.