public function OpenIDConnectSession::retrieveDestination in OpenID Connect / OAuth client 2.x
Get the destination redirect path and langcode from the session.
Parameters
bool $clear: The value is cleared from the session, unless this is set to FALSE.
Return value
array The destination path and langcode.
Overrides OpenIDConnectSessionInterface::retrieveDestination
File
- src/
OpenIDConnectSession.php, line 79
Class
- OpenIDConnectSession
- Session service of the OpenID Connect module.
Namespace
Drupal\openid_connectCode
public function retrieveDestination(bool $clear = TRUE) : array {
$ret = [
'destination' => $this->session
->get('openid_connect_destination'),
'langcode' => $this->session
->get('openid_connect_langcode'),
];
if ($clear) {
$this->session
->remove('openid_connect_destination');
$this->session
->remove('openid_connect_langcode');
}
return $ret;
}