DefaultEventsService.forPlugin()
Home > @backstage/plugin-events-node
> DefaultEventsService
> forPlugin
Returns a plugin-scoped context of the EventService
that ensures to prefix subscriber IDs with the plugin ID.
Signature:
forPlugin(pluginId: string, options?: {
discovery: DiscoveryService;
logger: LoggerService;
auth: AuthService;
lifecycle: LifecycleService;
}): EventsService;
Parameters
Parameter |
Type |
Description |
---|---|---|
pluginId |
string |
The plugin that the |
options |
{ discovery: DiscoveryService; logger: LoggerService; auth: AuthService; lifecycle: LifecycleService; } |
(Optional) |