Changed IBeforePaginationHook to IBeforeGeneratorsHook.