Contao\Session::get PHP Method

get() public method

Return a session variable
public get ( string $strKey ) : mixed
$strKey string The variable name
return mixed The variable value
    public function get($strKey)
    {
        // Map the referer (see #281)
        if (in_array($strKey, $this->mappedKeys)) {
            return $this->session->get($strKey);
        }
        return $this->sessionBag->get($strKey);
    }