public function Request::getSession

Gets the Session.

@api

Return value

SessionInterface|null The session

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 539

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getSession() {
  return $this->session;
}