You are here

class EasyEmailEvent in Easy Email 2.0.x

Same name and namespace in other branches
  1. 8 src/Event/EasyEmailEvent.php \Drupal\easy_email\Event\EasyEmailEvent

Defines the Entity Email event.

Hierarchy

  • class \Drupal\easy_email\Event\EasyEmailEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of EasyEmailEvent

See also

\Drupal\easy_email\Event\EasyEmailEvents

4 files declare their use of EasyEmailEvent
EmailAttachmentEvaluator.php in src/Service/EmailAttachmentEvaluator.php
EmailHandler.php in src/Service/EmailHandler.php
EmailTokenEvaluator.php in src/Service/EmailTokenEvaluator.php
EmailUserEvaluator.php in src/Service/EmailUserEvaluator.php

File

src/Event/EasyEmailEvent.php, line 13

Namespace

Drupal\easy_email\Event
View source
class EasyEmailEvent extends Event {

  /**
   * @var \Drupal\easy_email\Entity\EasyEmailInterface
   */
  protected $email;

  /**
   * Constructs a new EasyEmailEvent.
   *
   * @param \Drupal\easy_email\Entity\EasyEmailInterface $email
   *   The entity email
   */
  public function __construct(EasyEmailInterface $email) {
    $this->email = $email;
  }

  /**
   * Gets the entity email.
   *
   * @return \Drupal\easy_email\Entity\EasyEmailInterface
   *   The entity email
   */
  public function getEmail() : EasyEmailInterface {
    return $this->email;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EasyEmailEvent::$email protected property
EasyEmailEvent::getEmail public function Gets the entity email.
EasyEmailEvent::__construct public function Constructs a new EasyEmailEvent.