function _simplenews_batch_dispatcher in Simplenews 8.2
Same name and namespace in other branches
- 8 simplenews.module \_simplenews_batch_dispatcher()
- 3.x simplenews.module \_simplenews_batch_dispatcher()
Batch callback to dispatch batch operations to a service.
1 string reference to '_simplenews_batch_dispatcher'
- Mailer::attemptImmediateSend in src/
Mail/ Mailer.php - Send mail spool immediately if cron should not be used.
File
- ./
simplenews.module, line 923 - Simplenews node handling, sent email, newsletter block and general hooks.
Code
function _simplenews_batch_dispatcher() {
$args = func_get_args();
list($service, $method) = explode(':', array_shift($args));
call_user_func_array([
\Drupal::service($service),
$method,
], $args);
}