Provides Symfony Messenger stamps related to core or simple functionality, including:

Contextual Metadata

\Drupal\stamps\Messenger\Stamp\ActionsStamp

Add action links relevant to the message, categorised into primary, secondary, danger, positive, and negative links.

ActionsStamp::fromLinks(primary: [
  Link::fromTextAndUrl('Go home', Url::fromRoute('<front>')),
])

\Drupal\stamps\Messenger\Stamp\DescriptionStamp

Add user-friendly contextual metadata describing the message.

DescriptionStamp::create(title: 'A custom message!', description: '...and a description.')

\Drupal\stamps\Messenger\Stamp\LinksStamp

Add links relevant to the message.

LinksStamp::fromLinks(
  Link::fromTextAndUrl('Go home', Url::fromRoute('<front>')),
)

User metadata

\Drupal\stamps\Messenger\Stamp\CurrentUserStamp

Automatically added to messages when a message is dispatched during an authenticated web request.

Supporting organizations: 
Provided time to work on this project.

Project information

Releases