Returns element session.
Session
Overrides ElementInterface::getSession
Accessing the session from the element is deprecated as of 1.6 and will be impossible in 2.0.
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; }