You are here

function user_modules_uninstalled in Drupal 8

Same name and namespace in other branches
  1. 7 modules/user/user.module \user_modules_uninstalled()
  2. 9 core/modules/user/user.module \user_modules_uninstalled()
  3. 10 core/modules/user/user.module \user_modules_uninstalled()

Implements hook_modules_uninstalled().

File

core/modules/user/user.module, line 1365
Enables the user registration and login system.

Code

function user_modules_uninstalled($modules) {

  // Remove any potentially orphan module data stored for users.
  \Drupal::service('user.data')
    ->delete($modules);
}