interface EmailSenderInterface in Commerce Email 8
Hierarchy
- interface \Drupal\commerce_email\EmailSenderInterface
Expanded class hierarchy of EmailSenderInterface
All classes that implement EmailSenderInterface
1 file declares its use of EmailSenderInterface
- EmailSubscriber.php in src/
EventSubscriber/ EmailSubscriber.php
File
- src/
EmailSenderInterface.php, line 8
Namespace
Drupal\commerce_emailView source
interface EmailSenderInterface {
/**
* Sends the given email.
*
* @param \Drupal\commerce_email\Entity\EmailInterface $email
* The email.
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity.
*
* @return bool
* TRUE if the email was sent successfully, FALSE otherwise.
*
* @throws \InvalidArgumentException
* Thrown when given an entity that doesn't match the email event.
*/
public function send(EmailInterface $email, ContentEntityInterface $entity);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EmailSenderInterface:: |
public | function | Sends the given email. | 1 |