public function OpenIDConnectSession::retrieveOp in OpenID Connect / OAuth client 2.x
Get the operation details from the session.
Parameters
bool $clear: The value is cleared from the session, unless this is set to FALSE.
Return value
array The operation details.
Overrides OpenIDConnectSessionInterface::retrieveOp
File
- src/
OpenIDConnectSession.php, line 114
Class
- OpenIDConnectSession
- Session service of the OpenID Connect module.
Namespace
Drupal\openid_connectCode
public function retrieveOp(bool $clear = TRUE) : array {
$ret = [
'op' => $this->session
->get('openid_connect_op'),
'uid' => $this->session
->get('openid_connect_uid'),
];
if ($clear) {
$this->session
->remove('openid_connect_op');
$this->session
->remove('openid_connect_uid');
}
return $ret;
}