You are here

function system_test_modules_installed in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/system_test/system_test.module \system_test_modules_installed()
  2. 7 modules/simpletest/tests/system_test.module \system_test_modules_installed()
  3. 9 core/modules/system/tests/modules/system_test/system_test.module \system_test_modules_installed()

Implements hook_modules_installed().

File

core/modules/system/tests/modules/system_test/system_test.module, line 27
Test module.

Code

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