protected function BaseUpdateRunner::switchUserBack in Scheduled Updates 8
If the user has been switch to run an update switch the user back.
1 call to BaseUpdateRunner::switchUserBack()
- BaseUpdateRunner::runUpdate in src/
Plugin/ BaseUpdateRunner.php - Run an individual update from the queue.
File
- src/
Plugin/ BaseUpdateRunner.php, line 678 - Contains \Drupal\scheduled_updates\Plugin\BaseUpdateRunner.
Class
Namespace
Drupal\scheduled_updates\PluginCode
protected function switchUserBack() {
if ($this->isUserSwitched) {
$this->accountSwitcher
->switchBack();
$this->isUserSwitched = FALSE;
}
}