function CircularDependencyHooks::__construct

File

core/modules/system/tests/modules/HookLoader/hook_loader_test/src/Hook/CircularDependencyHooks.php, line 18

Class

CircularDependencyHooks
Example to test that a hook service can depend on ModuleHandler.

Namespace

Drupal\hook_loader_test\Hook

Code

public function __construct(public readonly ModuleHandlerInterface $moduleHandler) {
}

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