function ModuleTestThemeHooks::modulesUninstalled

Implements hook_modules_uninstalled().

Attributes

#[Hook('modules_uninstalled')]

File

core/modules/system/tests/modules/module_test/src/Hook/ModuleTestThemeHooks.php, line 78

Class

ModuleTestThemeHooks
Hook implementations for module_test.

Namespace

Drupal\module_test\Hook

Code

public function modulesUninstalled($modules) : void {
  // 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.