You are here

MailAddedEvent.php in Views Send 8

File

src/Event/MailAddedEvent.php
View source
<?php

namespace Drupal\views_send\Event;

use Symfony\Component\EventDispatcher\Event;
use Drupal\Core\TypedData\Plugin\DataType\Map;

/**
 * Event that is fired when an e-mail has been added to the spool.
 */
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);
    */
  }

}

Classes

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