function keycloak_modules_installed in Keycloak OpenID Connect 8
Implements hook_modules_installed().
File
- ./
keycloak.module, line 17 - Hook implementations of the Keycloak module.
Code
function keycloak_modules_installed($modules) {
// Whether the keycloak module was installed.
if (in_array('keycloak', $modules)) {
// Show configuration page hint.
$settings = Url::fromRoute('openid_connect.admin_settings')
->toString();
\Drupal::messenger()
->addStatus(t('You can now enable Keycloak OpenID Connect sign in at the <a href=":settings">OpenID Connect settings</a> page.', [
':settings' => $settings,
]));
}
}