function TestingSiteConfigHooks::__construct

Same name and namespace in other branches
  1. main core/profiles/tests/testing_site_config/src/Hook/TestingSiteConfigHooks.php \Drupal\testing_site_config\Hook\TestingSiteConfigHooks::__construct()

File

core/profiles/tests/testing_site_config/src/Hook/TestingSiteConfigHooks.php, line 27

Class

TestingSiteConfigHooks
Simulates a hook class with a dependency chain requiring the kernel.

Namespace

Drupal\testing_site_config\Hook

Code

public function __construct(#[Autowire(service: 'kernel')] protected $kernel) {
}

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