You are here

public static function RoutingTransactionNameSubscriber::getSubscribedEvents in New Relic 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/RoutingTransactionNameSubscriber.php \Drupal\new_relic_rpm\EventSubscriber\RoutingTransactionNameSubscriber::getSubscribedEvents()
  2. 2.0.x src/EventSubscriber/RoutingTransactionNameSubscriber.php \Drupal\new_relic_rpm\EventSubscriber\RoutingTransactionNameSubscriber::getSubscribedEvents()

File

src/EventSubscriber/RoutingTransactionNameSubscriber.php, line 25

Class

RoutingTransactionNameSubscriber
Enhances routes with a transaction name or transaction name callback.

Namespace

Drupal\new_relic_rpm\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    RoutingEvents::ALTER => [
      'addTransactionNamesToRoutes',
    ],
  ];
}