You are here

class MailAddedEvent in Views Send 8

Event that is fired when an e-mail has been added to the spool.

Hierarchy

  • class \Drupal\views_send\Event\MailAddedEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of MailAddedEvent

1 file declares its use of MailAddedEvent
views_send.module in ./views_send.module
The Views Send module.

File

src/Event/MailAddedEvent.php, line 11

Namespace

Drupal\views_send\Event
View source
class MailAddedEvent extends Event {
  const EVENT_NAME = 'views_send_email_added_to_spool';

  /**
   * The message.
   *
   * @var \Drupal\Core\TypedData\Plugin\DataType\Map
   */
  public $message;

  /**
   * Constructs the object.
   *
   * @param array $message
   *   The message.
   */
  public function __construct($message) {

    /*
    FIXME
    $this->message = new Map();
    $this->message->setValue($message);
    */
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MailAddedEvent::$message public property The message.
MailAddedEvent::EVENT_NAME constant
MailAddedEvent::__construct public function Constructs the object.