Common Stamps
Security coveredThis module provides Symfony Messenger stamps that add contextual metadata to messages. It allows for the inclusion of action links, descriptive text, and automatically adds the current user's information when messages are sent during an authenticated request.
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.
Ask your assistant about Common Stamps
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.