function _user_cancel_session_regenerate
Same name and namespace in other branches
- 11.x core/modules/user/user.module \_user_cancel_session_regenerate()
- 10 core/modules/user/user.module \_user_cancel_session_regenerate()
- 9 core/modules/user/user.module \_user_cancel_session_regenerate()
- 8.9.x core/modules/user/user.module \_user_cancel_session_regenerate()
- 7.x modules/user/user.module \_user_cancel_session_regenerate()
Implements callback_batch_finished().
Finished batch processing callback for cancelling a user account.
Deprecated
in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\AccountCancellation::regenerateSession() instead.
See also
https://www.drupal.org/node/3620934
File
-
core/
modules/ user/ user.module, line 246
Code
function _user_cancel_session_regenerate() : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use \\Drupal\\user\\AccountCancellation::regenerateSession() instead. See https://www.drupal.org/node/3620934', E_USER_DEPRECATED);
\Drupal::service(AccountCancellation::class)->regenerateSession();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.