You are here

public function Element::getSession in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\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 69

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;
}