You are here

protected function SpoolStorage::createSpoolList in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Spool/SpoolStorage.php \Drupal\simplenews\Spool\SpoolStorage::createSpoolList()

Creates an instance of SpoolListInterface.

Derived classes can override this to use a different implementation.

Parameters

array $spool_rows: List of mail spool rows.

Return value

\Drupal\simplenews\SpoolSpoolListInterface The spool list.

1 call to SpoolStorage::createSpoolList()
SpoolStorage::getMails in src/Spool/SpoolStorage.php
This function allocates mails to be sent in current run.

File

src/Spool/SpoolStorage.php, line 389

Class

SpoolStorage
Default database spool storage.

Namespace

Drupal\simplenews\Spool

Code

protected function createSpoolList(array $spool_rows) {
  return new SpoolList($spool_rows, $this);
}