[TIMOB-10752] Added support for an array of hook events to emit.