You are here

private function DrupalBootstrap::bootstrapInvokeAll in X Autoload 7.5

Parameters

string $hook:

See also

bootstrap_invoke_all()

1 call to DrupalBootstrap::bootstrapInvokeAll()
DrupalBootstrap::drupalBootstrapPageHeader in tests/src/VirtualDrupal/DrupalBootstrap.php

File

tests/src/VirtualDrupal/DrupalBootstrap.php, line 107

Class

DrupalBootstrap

Namespace

Drupal\xautoload\Tests\VirtualDrupal

Code

private function bootstrapInvokeAll($hook) {

  // Bootstrap modules should have been loaded when this function is called, so
  // we don't need to tell module_list() to reset its internal list (and we
  // therefore leave the first parameter at its default value of FALSE). We
  // still pass in TRUE for the second parameter, though; in case this is the
  // first time during the bootstrap that module_list() is called, we want to
  // make sure that its internal cache is primed with the bootstrap modules
  // only.
  foreach ($this->moduleList
    ->moduleList(FALSE, TRUE) as $module) {
    $this->drupalLoad
      ->drupalLoad('module', $module);
    PureFunctions::moduleInvoke($module, $hook);
  }
}