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

Breadcrumb

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

function Element::getSession

Returns element session.

Return value

Session

Overrides ElementInterface::getSession

Deprecated

Accessing the session from the element is deprecated as of 1.6 and will be impossible in 2.0.

File

vendor/behat/mink/src/Element/Element.php, line 62

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

public function getSession() {
    @trigger_error(sprintf('The method %s is deprecated as of 1.6 and will be removed in 2.0', __METHOD__), E_USER_DEPRECATED);
    return $this->session;
}

API Navigation

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