Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Mink.php

function Mink::isSessionStarted

Checks whether a named session (or the default session) has already been started.

Parameters

string|null $name session name - if null then the default session will be checked:

Return value

bool whether the session has been started

Throws

\InvalidArgumentException If the named session is not registered

File

vendor/behat/mink/src/Mink.php, line 132

Class

Mink
Mink session manager.

Namespace

Behat\Mink

Code

public function isSessionStarted(?string $name = null) {
    $session = $this->locateSession($name);
    return $session->isStarted();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal