EmailInterface.php in Courier 8
Same filename and directory in other branches
Contains \Drupal\courier\EmailInterface.
Namespace
Drupal\courierFile
src/EmailInterface.phpView source
<?php
/**
* @file
* Contains \Drupal\courier\EmailInterface.
*/
namespace Drupal\courier;
use Drupal\Core\Entity\ContentEntityInterface;
/**
* Provides an interface defining a courier_email entity.
*/
interface EmailInterface extends ContentEntityInterface, ChannelInterface {
/**
* Get the email address.
*
* @return string
* The email address of the recipient.
*/
public function getEmailAddress();
/**
* Sets email address.
*
* @param string $mail
* The recipient email address.
*
* @return \Drupal\courier\EmailInterface
* Returns email for chaining.
*/
public function setEmailAddress($mail);
/**
* Get the name of the recipient.
*
* @return string
* The name of the recipient.
*/
public function getRecipientName();
/**
* Sets recipient name.
*
* @param string $name
* The recipients name.
*
* @return \Drupal\courier\EmailInterface
* Returns email for chaining.
*/
public function setRecipientName($name);
/**
* Get the subject for the email.
*
* @return string
* The subject.
*/
public function getSubject();
/**
* Set subject of the email.
*
* @param string $subject
* Subject of the email.
*
* @return \Drupal\courier\EmailInterface
* Returns email for chaining.
*/
public function setSubject($subject);
/**
* Returns the email body.
*
* @return string
* Body of the email.
*/
public function getBody();
/**
* Sets the email body.
*
* @param string $body
* The email body.
*
* @return \Drupal\courier\EmailInterface
* Returns email for chaining.
*/
public function setBody($body);
/**
* Returns the email body format.
*
* @return string
* Format of the email body.
*/
public function getBodyFormat();
/**
* Sets the email body format.
*
* @param string $format
* The email body format.
*
* @return \Drupal\courier\EmailInterface
* Returns email for chaining.
*/
public function setBodyFormat($format);
}
Interfaces
Name | Description |
---|---|
EmailInterface | Provides an interface defining a courier_email entity. |