Mercurial > hg > isophonics-drupal-site
view core/modules/contact/src/MailHandlerInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\contact; use Drupal\Core\Session\AccountInterface; /** * Provides an interface for assembly and dispatch of contact mail messages. */ interface MailHandlerInterface { /** * Sends mail messages as appropriate for a given Message form submission. * * Can potentially send up to three messages as follows: * - To the configured recipient; * - Auto-reply to the sender; and * - Carbon copy to the sender. * * @param \Drupal\contact\MessageInterface $message * Submitted message entity. * @param \Drupal\Core\Session\AccountInterface $sender * User that submitted the message entity form. * * @throws \Drupal\contact\MailHandlerException * When unable to determine message recipient. */ public function sendMailMessages(MessageInterface $message, AccountInterface $sender); }