public function EmailSenderInterface::send in Commerce Email 8
Sends the given email.
Parameters
\Drupal\commerce_email\Entity\EmailInterface $email: The email.
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.
Return value
bool TRUE if the email was sent successfully, FALSE otherwise.
Throws
\InvalidArgumentException Thrown when given an entity that doesn't match the email event.
1 method overrides EmailSenderInterface::send()
- EmailSender::send in src/
EmailSender.php - Sends the given email.
File
- src/
EmailSenderInterface.php, line 24
Class
Namespace
Drupal\commerce_emailCode
public function send(EmailInterface $email, ContentEntityInterface $entity);