interface SpoolListInterface in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Spool/SpoolListInterface.php \Drupal\simplenews\Spool\SpoolListInterface
- 3.x src/Spool/SpoolListInterface.php \Drupal\simplenews\Spool\SpoolListInterface
A list of spooled mails.
Hierarchy
- interface \Drupal\simplenews\Spool\SpoolListInterface extends \Drupal\simplenews\Spool\Countable
Expanded class hierarchy of SpoolListInterface
All classes that implement SpoolListInterface
File
- src/
Spool/ SpoolListInterface.php, line 8
Namespace
Drupal\simplenews\SpoolView source
interface SpoolListInterface extends \Countable {
/**
* Returns a Simplenews mail to be sent.
*
* @return \Drupal\simplenews\Mail\MailInterface
* Next mail to be sent.
*/
public function nextMail();
/**
* Records the result of sending the last mail.
*
* @param int $result
* One of the SpoolStorageInterface::STATUS_* constants.
*/
public function setLastMailResult($result);
/**
* Returns the results of all mails that have been processed by this list.
*
* This function cancels any remaining mails in the list.
*
* @return array
* An array of mail spool rows. Each array value is a simplenews_mail_spool
* database row plus the following additional properties.
* - langcode: language used to send this mail.
* - result: one of the SpoolStorageInterface::STATUS_* constants.
*/
public function getResults();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SpoolListInterface:: |
public | function | Returns the results of all mails that have been processed by this list. | 1 |
SpoolListInterface:: |
public | function | Returns a Simplenews mail to be sent. | 1 |
SpoolListInterface:: |
public | function | Records the result of sending the last mail. | 1 |