protected function OpenIDConnectClientBase::getRedirectUrl in OpenID Connect / OAuth client 2.x
Same name and namespace in other branches
- 8 src/Plugin/OpenIDConnectClientBase.php \Drupal\openid_connect\Plugin\OpenIDConnectClientBase::getRedirectUrl()
Returns the redirect URL.
Parameters
array $route_parameters: See \Drupal\Core\Url::fromRoute() for details.
array $options: See \Drupal\Core\Url::fromRoute() for details.
Return value
\Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL.
See also
File
- src/
Plugin/ OpenIDConnectClientBase.php, line 436
Class
- OpenIDConnectClientBase
- Base class for OpenID Connect client plugins.
Namespace
Drupal\openid_connect\PluginCode
protected function getRedirectUrl(array $route_parameters = [], array $options = []) : Url {
$route_parameters += [
'openid_connect_client' => $this->parentEntityId,
];
$options += [
'absolute' => TRUE,
'language' => $this->languageManager
->getLanguage(LanguageInterface::LANGCODE_NOT_APPLICABLE),
];
return Url::fromRoute('openid_connect.redirect_controller_redirect', $route_parameters, $options);
}