class EasyEmailEvent in Easy Email 8
Same name and namespace in other branches
- 2.0.x 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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EasyEmailEvent:: |
protected | property | ||
EasyEmailEvent:: |
public | function | Gets the entity email. | |
EasyEmailEvent:: |
public | function | Constructs a new EasyEmailEvent. |