You are here

function module_test_modules_installed in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/module_test/module_test.module \module_test_modules_installed()
  2. 10 core/modules/system/tests/modules/module_test/module_test.module \module_test_modules_installed()

Implements hook_modules_installed().

1 string reference to 'module_test_modules_installed'
ModuleImplementsAlterTest::testModuleImplementsAlter in core/tests/Drupal/KernelTests/Core/Extension/ModuleImplementsAlterTest.php
Tests hook_module_implements_alter() adding an implementation.

File

core/modules/system/tests/modules/module_test/module_test.module, line 82
Test module.

Code

function module_test_modules_installed($modules) {

  // Record the ordered list of modules that were passed in to this hook so we
  // can check that the modules were enabled in the correct sequence.
  \Drupal::state()
    ->set('module_test.install_order', $modules);
}