function module_test_modules_installed

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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

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);
}

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