function ChangeLogger::getSubscribedEvents

File

core/modules/package_manager/src/EventSubscriber/ChangeLogger.php, line 182

Class

ChangeLogger
Event subscriber to log changes that happen during the stage life cycle.

Namespace

Drupal\package_manager\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  return [
    PreCreateEvent::class => [
      'recordInstalledPackages',
    ],
    PostRequireEvent::class => [
      'recordRequestedPackageVersions',
    ],
    PostApplyEvent::class => [
      'logChanges',
    ],
  ];
}

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