function UpdateKernel::shutdownSession

Same name in other branches
  1. 9 core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::shutdownSession()
  2. 8.9.x core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::shutdownSession()
  3. 11.x core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::shutdownSession()

Ensures that the session is saved.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The incoming request.

1 call to UpdateKernel::shutdownSession()
UpdateKernel::handle in core/lib/Drupal/Core/Update/UpdateKernel.php

File

core/lib/Drupal/Core/Update/UpdateKernel.php, line 141

Class

UpdateKernel
Defines a kernel which is used primarily to run the update of Drupal.

Namespace

Drupal\Core\Update

Code

protected function shutdownSession(Request $request) {
    $request->getSession()
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.