W3cubDocs

/Drupal 8

function system_authorized_batch_process

system_authorized_batch_process()

Use authorize.php to run batch_process().

See also

batch_process()

Related topics

Authorized operations
Functions to run operations with elevated privileges via authorize.php.

File

core/modules/system/system.module, line 486
Configuration system that lets administrators modify the workings of the site.

Code

function system_authorized_batch_process() {
  $finish_url = system_authorized_get_url();
  $process_url = system_authorized_batch_processing_url();
  return batch_process($finish_url->setAbsolute()->toString(), $process_url);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!system!system.module/function/system_authorized_batch_process/8.1.x