Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MessageEvent.php

function MessageEvent::addStamp

File

vendor/symfony/mailer/Event/MessageEvent.php, line 81

Class

MessageEvent
Allows the transformation of a Message and the Envelope before the email is sent.

Namespace

Symfony\Component\Mailer\Event

Code

public function addStamp(StampInterface $stamp) : void {
    if (!$this->queued) {
        throw new LogicException(\sprintf('Cannot call "%s()" on a message that is not meant to be queued.', __METHOD__));
    }
    $this->stamps[] = $stamp;
}
RSS feed
Powered by Drupal