function system_test_modules_uninstalled

Same name in other branches
  1. 7.x modules/simpletest/tests/system_test.module \system_test_modules_uninstalled()
  2. 8.9.x core/modules/system/tests/modules/system_test/system_test.module \system_test_modules_uninstalled()
  3. 10 core/modules/system/tests/modules/system_test/system_test.module \system_test_modules_uninstalled()
  4. 11.x core/modules/system/tests/modules/system_test/system_test.module \system_test_modules_uninstalled()

Implements hook_modules_uninstalled().

File

core/modules/system/tests/modules/system_test/system_test.module, line 38

Code

function system_test_modules_uninstalled($modules) {
    if (\Drupal::state()->get('system_test.verbose_module_hooks')) {
        foreach ($modules as $module) {
            \Drupal::messenger()->addStatus(t('hook_modules_uninstalled fired for @module', [
                '@module' => $module,
            ]));
        }
    }
}

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