You are here

interface EmailSenderInterface in Commerce Email 8

Hierarchy

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_email
View 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

Namesort descending Modifiers Type Description Overrides
EmailSenderInterface::send public function Sends the given email. 1