You are here

function _simplenews_batch_dispatcher in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 simplenews.module \_simplenews_batch_dispatcher()
  2. 8 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 926
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);
}