function HookCollectorPass::loadAllIncludes

This method is only to be used by ModuleHandler.

@todo Remove when ModuleHandler::add() is removed in Drupal 12.0.0.

@internal

File

core/lib/Drupal/Core/Hook/HookCollectorPass.php, line 649

Class

HookCollectorPass
Collects and registers hook implementations.

Namespace

Drupal\Core\Hook

Code

public function loadAllIncludes() : void {
  foreach ($this->includes as $include) {
    include_once $include;
  }
}

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