Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Common Stamps

Security covered

This 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.

Drupal 10–11 PHP 8.1

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.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
0.1.0 Stable 10–11 PHP 8.1 Oct 22, 2023
1.x-dev Dev 10–11 PHP 8.1 Oct 22, 2023