public static function Utilities::advertiseServer in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 8
Advertise OAuth Server Module
1 call to Utilities::advertiseServer()
- MiniorangeConfigOAuthClient::buildForm in src/
Form/ MiniorangeConfigOAuthClient.php - Form constructor.
File
- src/
Utilities.php, line 383
Class
Namespace
Drupal\miniorange_oauth_clientCode
public static function advertiseServer(&$form, &$form_state) {
global $base_url;
$module_path = \Drupal::service('extension.list.module')
->getPath('miniorange_oauth_client');
$form['miniorange_oauth_client_setup_guide_link'] = array(
'#markup' => '<div class="mo_saml_table_layout mo_saml_container_2" id="mo_oauth_guide_vt">',
);
$form['miniorange_oauth_client_guide_link1'] = array(
'#markup' => '<div style="font-size: 15px;"><i>Looking for a Drupal OAuth Server module? Now create your own Drupal site as an OAuth Server.</i></div></br>',
);
$form['miniorange_oauth_client_guide_table_list'] = array(
'#markup' => '<div class="table-responsive mo_guide_text-center" style="font-family: sans-serif;font-size: 15px;">
<table class="" style="border: none !important;max-width: 100%;border-collapse: collapse;">
<thead>
<tr><th class="mo_guide_text-center" style="border: none;"><img src="' . $base_url . '/' . $module_path . '/includes/images/miniorange.png" alt="Simply Easy Learning" height = 80px width = 80px ></th><th class="mo_guide_text-center" style = "border: none;"><b>Drupal OAuth Server( OAuth Provider) - Single Sign On (SSO)</b></th></tr>
</thead>
</table>
<div>
<p>OAuth Server allows Single Sign-On to your client apps with Drupal. It allows you to use Drupal as your OAuth Server and access OAuth API’s</p>
<br>
</div>
<table>
<tr>
<a class="mo_oauth_btn mo_oauth_btn-get-module mo_oauth_btn-large" href="https://www.drupal.org/project/oauth_server_sso" target ="_blank">
Download module
</a>
<a class="mo_oauth_btn mo_oauth_btn-know-more mo_oauth_btn-large" href="https://plugins.miniorange.com/drupal-oauth-server" target ="_blank">
Know more
</a>
</tr>
</table>
</div>',
);
}