The signature should be `$request, $response, $eventManager, $options` where viewVars is part of $options.