You are here

public function DrupalPhaseControl::modulesEnabled in X Autoload 7.5

Called from

Parameters

$modules:

See also

xautoload_modules_enabled()

File

src/Phases/DrupalPhaseControl.php, line 161

Class

DrupalPhaseControl
Records events during a Drupal request, and forwards them to the registered observers after the first class loader cache miss.

Namespace

Drupal\xautoload\Phases

Code

public function modulesEnabled($modules) {
  if (!$this->awake) {

    // No need to postpone.
    // initMainPhase() will have these modules included.
    return;
  }
  foreach ($this->observers as $observer) {
    $observer
      ->modulesEnabled($modules);
  }
}