function KernelTestCompilerPass::__construct

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/KernelTestCompilerPass.php \Drupal\KernelTests\KernelTestCompilerPass::__construct()

Constructs a KernelTestCompilerPass object.

Parameters

\Symfony\Component\DependencyInjection\Definition $definition: The kernel test service definition that will be used to register hooks.

File

core/tests/Drupal/KernelTests/KernelTestCompilerPass.php, line 24

Class

KernelTestCompilerPass
Adds hooks from kernel test to event dispatcher and module handler.

Namespace

Drupal\KernelTests

Code

public function __construct(private Definition $definition) {
}

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