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

Breadcrumb

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

function Mink::getSession

Returns registered session by its name or default one.

Parameters

string|null $name session name:

Return value

Session

Throws

\InvalidArgumentException If the named session is not registered

1 call to Mink::getSession()
Mink::assertSession in vendor/behat/mink/src/Mink.php
Returns session asserter.

File

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

Class

Mink
Mink session manager.

Namespace

Behat\Mink

Code

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

API Navigation

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