function SpoolStorageInterface::addFromEntity in Simplenews 8
Add the newsletter node to the mail spool.
The caller is responsible for saving the changed node entity.
Parameters
\Drupal\node\NodeInterface $node: The newsletter node to be sent.
1 method overrides SpoolStorageInterface::addFromEntity()
- SpoolStorage::addFromEntity in src/
Spool/ SpoolStorage.php - Add the newsletter node to the mail spool.
File
- src/
Spool/ SpoolStorageInterface.php, line 115
Class
- SpoolStorageInterface
- The spool storage manages a queue of mails that need to be sent.
Namespace
Drupal\simplenews\SpoolCode
function addFromEntity(NodeInterface $node);