public function DefaultController::backgroundProcessServiceStart in Background Process 8
Implements Background Process Service Start.
1 string reference to 'DefaultController::backgroundProcessServiceStart'
File
- src/
Controller/ DefaultController.php, line 70
Class
- DefaultController
- Implements Default controller for the background_process module.
Namespace
Drupal\background_process\ControllerCode
public function backgroundProcessServiceStart($handle, $return = FALSE) {
header("Content-Type: text/plain");
// Clean up the mess the menu-router system leaves behind.
$cid = 'menu_item:' . hash('sha256', $_GET['q']);
drupal_register_shutdown_function('_background_process_cleanup_menu', $cid);
// Setup service.
ignore_user_abort(TRUE);
@set_time_limit(\Drupal::config('background_process.settings')
->get('background_process_service_timeout'));
$handle = rawurldecode($handle);
return background_process_service_execute($handle, $return);
}