protected function ContentAccessAdminSettingsForm::savePermissions in Content Access 8
Saves the given permissions by role to the database.
1 call to ContentAccessAdminSettingsForm::savePermissions()
- ContentAccessAdminSettingsForm::submitForm in src/
Form/ ContentAccessAdminSettingsForm.php - Form submission handler.
File
- src/
Form/ ContentAccessAdminSettingsForm.php, line 197
Class
- ContentAccessAdminSettingsForm
- Node Access settings form.
Namespace
Drupal\content_access\FormCode
protected function savePermissions($roles_permissions) {
foreach ($roles_permissions as $rid => $permissions) {
user_role_change_permissions($rid, $permissions);
}
}