You are here

function SpoolList::getProcessed in Simplenews 8

Returns the processed mail spool rows, keyed by the msid.

Only rows that were processed while preparing the previously returned source must be returned.

Return value

An array of mail spool rows, keyed by the msid. Can optionally have set the following additional properties.

  • actual_nid: In case of content translation, the source node that was used for this mail.
  • error: FALSE if the prepration for this row failed. For example set when the corresponding node failed to load.
  • status: A simplenews spool status to indicate the status.

Overrides SpoolListInterface::getProcessed

File

src/Spool/SpoolList.php, line 97

Class

SpoolList
List of mail spool entries.

Namespace

Drupal\simplenews\Spool

Code

function getProcessed() {
  $processed = $this->processed;
  $this->processed = array();
  return $processed;
}