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

Breadcrumb

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

function Mink::setDefaultSessionName

Sets default session name to use.

Parameters

string $name name of the registered session:

Return value

void

Throws

\InvalidArgumentException

File

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

Class

Mink
Mink session manager.

Namespace

Behat\Mink

Code

public function setDefaultSessionName(string $name) {
    $name = strtolower($name);
    if (!isset($this->sessions[$name])) {
        throw new \InvalidArgumentException(sprintf('Session "%s" is not registered.', $name));
    }
    $this->defaultSessionName = $name;
}

API Navigation

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