function ThemeHookCollectorPass::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php \Drupal\Core\Hook\ThemeHookCollectorPass::__construct()
Constructor.
Parameters
list<string> $themes: Names of installed themes. When used as a compiler pass, this parameter should be omitted.
File
-
core/
lib/ Drupal/ Core/ Hook/ ThemeHookCollectorPass.php, line 69
Class
- ThemeHookCollectorPass
- Collects and registers hook implementations.
Namespace
Drupal\Core\HookCode
public function __construct(protected readonly array $themes = []) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.