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