Declare a notice imperatively.
The imperative half of @Notice, and it says exactly the same thing: metadata here, content in the module. Put the result on stone.notifications.notices.
@Notice
stone.notifications.notices
The notice: a class, or an object answering notify.
notify
The notice's metadata.
Whether module is a class the container should build. Defaults to true.
module
The declaration.
blueprint.set('stone.notifications.notices', [ defineNotice(ConsentNeeded, { name: 'guardianship.consent_needed', on: 'identity.guardian.invited.v1' })]) Copy
blueprint.set('stone.notifications.notices', [ defineNotice(ConsentNeeded, { name: 'guardianship.consent_needed', on: 'identity.guardian.invited.v1' })])
Declare a notice imperatively.
The imperative half of
@Notice, and it says exactly the same thing: metadata here, content in the module. Put the result onstone.notifications.notices.