function CircularDependencyHooks::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/HookLoader/hook_loader_test/src/Hook/CircularDependencyHooks.php \Drupal\hook_loader_test\Hook\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.