$this->state->
set('drupal.performance_test_recorder',
$record);
} else { isset(self::
$record[$type][$name]) ? self::
$record[$type][$name]++ : self::
$record[$type][$name] = 1;
} } /**
* Records a router rebuild.
*/
public function onRouteBuilderFinish() { $this->
record('event', RoutingEvents::FINISHED
);
} /**
* {@inheritdoc}
*/
public static function getSubscribedEvents(): array
{ $events =
[];
$events[RoutingEvents::FINISHED
][] =
['onRouteBuilderFinish', -9999999
];
return $events;
}