NotificationProducer
Corex\Notifications\NotificationProducer · interface · Core layer
Turns a module’s events into notifications. A producer registers itself only when its module is present (spec 072 FR-014) — an absent module produces nothing, never fabricated data. Producers hook the events they care about and call {@see NotificationService::publish()}; they never run remote checks during rendering (FR-015).
Public API
Section titled “Public API”key(): string
Section titled “key(): string”A stable identifier for this producer (e.g. forms.submissions).
isAvailable(): bool
Section titled “isAvailable(): bool”Whether this producer’s module is available in the current install.
register(): void
Section titled “register(): void”Wire the producer’s event subscriptions. Called once at boot when {@see isAvailable()}.