lib/classes/PluginManager.js/PluginManager/loadHooks
class PluginManager:  loadHooks(pluginInstance) {
    _.forEach(pluginInstance.hooks, (hook, event) => {
      this.hooks[event] = this.hooks[event] || [];
      this.hooks[event].push(hook);
    });
  }