function _queue_mail_get_queue in Queue Mail 8
Same name and namespace in other branches
- 7 queue_mail.module \_queue_mail_get_queue()
Get an instance of the mail queue.
4 calls to _queue_mail_get_queue()
- QueueMailFunctionalTest::sendEmailAndTest in tests/
src/ Functional/ QueueMailFunctionalTest.php - Send an email and ensure it is queued or sent immediately.
- QueueMailFunctionalTest::testCancelMessage in tests/
src/ Functional/ QueueMailFunctionalTest.php - Test that message sending may be canceled.
- QueueMailFunctionalTest::testFailMessage in tests/
src/ Functional/ QueueMailFunctionalTest.php - Test that message sending may be failed.
- QueueMailFunctionalTest::testSkippedEmail in tests/
src/ Functional/ QueueMailFunctionalTest.php - Test that messages are not queued if the the "send" flag is FALSE.
File
- ./
queue_mail.module, line 11 - The Queue Mail module.
Code
function _queue_mail_get_queue() {
return \Drupal::queue('queue_mail', TRUE);
}