getSubscribedEvents() публичный статический Метод

Pre Install/Update: The version needs to be added to the url (will show up in composer.lock) Pre Download: The key needs to be added to the url (will not show up in composer.lock)
public static getSubscribedEvents ( ) : array
Результат array An array of events that the plugin subscribes to
 public function testSubscribesToPreFileDownloadEvent()
 {
     $subscribedEvents = Plugin::getSubscribedEvents();
     $this->assertEquals($subscribedEvents[PluginEvents::PRE_FILE_DOWNLOAD], 'addKey');
 }