function PerformanceDataCollector::getSubscribedEvents

File

core/modules/system/tests/modules/performance_test/src/PerformanceDataCollector.php, line 38

Class

PerformanceDataCollector
Collects and stores performance data for database and cache operations.

Namespace

Drupal\performance_test

Code

public static function getSubscribedEvents() : array {
  return [
    StatementExecutionEndEvent::class => 'onDatabaseEvent',
    StatementExecutionFailureEvent::class => 'onDatabaseEvent',
  ];
}

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