You are here

public static function PerformanceTestRecorder::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Test/PerformanceTestRecorder.php \Drupal\Core\Test\PerformanceTestRecorder::getSubscribedEvents()

File

core/lib/Drupal/Core/Test/PerformanceTestRecorder.php, line 84

Class

PerformanceTestRecorder
Records the number of times specific events occur.

Namespace

Drupal\Core\Test

Code

public static function getSubscribedEvents() : array {
  $events = [];
  $events[RoutingEvents::FINISHED][] = [
    'onRouteBuilderFinish',
    -9999999,
  ];
  return $events;
}