You are here

public static function FileResponseSubscriber::getSubscribedEvents in Commerce File 8.2

File

src/EventSubscriber/FileResponseSubscriber.php, line 68

Class

FileResponseSubscriber
A subscriber to log downloads of licensed files.

Namespace

Drupal\commerce_file\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::TERMINATE][] = [
    'logFileDownload',
    100,
  ];
  return $events;
}