function DatabaseEventEnabler::handle
Same name in other branches
- 10 core/modules/system/tests/modules/performance_test/src/DatabaseEventEnabler.php \Drupal\performance_test\DatabaseEventEnabler::handle()
File
-
core/
modules/ system/ tests/ modules/ performance_test/ src/ DatabaseEventEnabler.php, line 20
Class
Namespace
Drupal\performance_testCode
public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE) : Response {
if ($type === static::MAIN_REQUEST) {
$this->connection
->enableEvents(StatementEvent::all());
}
return $this->httpKernel
->handle($request, $type, $catch);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.