public function MockArraySessionStorage::getId

Returns the session ID

@api

Return value

string The session ID or empty.

Overrides SessionStorageInterface::getId

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php, line 124

Class

MockArraySessionStorage
MockArraySessionStorage mocks the session for unit tests.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function getId() {
  return $this->id;
}