Sets the Session.
@api
Parameters
SessionInterface $session The Session:
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 577
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundation
Code
public function setSession(SessionInterface $session) {
$this->session = $session;
}