Implements hook_modules_uninstalled().
function module_test_modules_uninstalled($modules) {
// Record the ordered list of modules that were passed in to this hook so we
// can check that the modules were uninstalled in the correct sequence.
Drupal::state()
->set('module_test.uninstall_order', $modules);
}