function ModuleTestThemeHooks::modulesInstalled

Implements hook_modules_installed().

Attributes

#[Hook('modules_installed')]

File

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

Class

ModuleTestThemeHooks
Hook implementations for module_test.

Namespace

Drupal\module_test\Hook

Code

public function modulesInstalled($modules) : void {
  // 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.