function HookCollectorPass::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Hook/HookCollectorPass.php \Drupal\Core\Hook\HookCollectorPass::__construct()

Constructor.

Parameters

list<string> $modules: Names of installed modules. When used as a compiler pass, this parameter should be omitted.

File

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

Class

HookCollectorPass
Collects and registers hook implementations.

Namespace

Drupal\Core\Hook

Code

public function __construct(protected readonly array $modules = []) {
}

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