public static function MoAuthUtilities::AddsupportTab in Google Authenticator / 2 Factor Authentication - 2FA 8
18 calls to MoAuthUtilities::AddsupportTab()
- configure_google_authenticator::buildForm in src/
Form/ configure_google_authenticator.php - Form constructor.
- configure_kba::buildForm in src/
Form/ configure_kba.php - Form constructor.
- configure_otp_over_email::buildForm in src/
Form/ configure_otp_over_email.php - Form constructor.
- configure_otp_over_phone::buildForm in src/
Form/ configure_otp_over_phone.php - Form constructor.
- configure_otp_over_sms::buildForm in src/
Form/ configure_otp_over_sms.php - Form constructor.
File
- src/
MoAuthUtilities.php, line 25 - This file is part of miniOrange 2FA module.
Class
Namespace
Drupal\miniorange_2faCode
public static function AddsupportTab(array &$form, \Drupal\Core\Form\FormStateInterface $form_state) {
$email = '';
$phone = '';
if (MoAuthUtilities::isCustomerRegistered()) {
$customer = new MiniorangeCustomerProfile();
$email = $customer
->getRegisteredEmail();
$phone = $customer
->getRegisteredPhone();
}
$form['markup_idp_attr_header_top_support'] = array(
'#markup' => '<div class="mo_saml_table_layout_support_1 mo_saml_container" id="ma_saml_support_query">',
);
$form['markup_support_1'] = array(
'#markup' => '<h3><b>Feature Request/Contact Us:</b></h3><div>Need any help? We can help you with configuring miniOrange 2FA module on your site. Just send us a query and we will get back to you soon.<br /></div><br>',
);
$form['markup_support_2'] = array(
'#markup' => '<div><i>If you have any query related to the Licensing Plans, please let us know, we will assist you in choosing the right plan as per your requirement.</i><br /></div>',
);
$form['miniorange_2fa_email_address_support'] = array(
'#type' => 'textfield',
'#attributes' => array(
'placeholder' => 'Enter your Email',
),
'#default_value' => $email,
);
$form['miniorange_2fa_phone_number_support'] = array(
'#type' => 'textfield',
'#id' => 'query_phone',
'#attributes' => array(
'placeholder' => 'Enter your Phone Number',
'class' => array(
'query_phone',
),
),
'#default_value' => $phone,
);
$form['miniorange_2fa_support_query_support'] = array(
'#type' => 'textarea',
'#clos' => '10',
'#rows' => '5',
'#attributes' => array(
'placeholder' => 'Write your query here',
),
);
$form['miniorange_2fa_support_submit_click'] = array(
'#type' => 'submit',
'#value' => t('Submit Query'),
'#submit' => array(
'\\Drupal\\miniorange_2fa\\MoAuthUtilities::get_support_query_data',
),
'#limit_validation_errors' => array(),
'#attributes' => array(
'style' => 'background: #337ab7;color: #ffffff;text-shadow: 0 -1px 1px #337ab7, 1px 0 1px #337ab7, 0 1px 1px #337ab7, -1px 0 1px #337ab7;box-shadow: 0 1px 0 #337ab7;border-color: #337ab7 #337ab7 #337ab7;display:block;margin-left:auto;margin-right:auto;',
),
);
$form['miniorange_2fa_support_note'] = array(
'#markup' => '<div><br/>If you want custom features in the module, just drop an email to <a href="mailto:drupalsupport@xecurify.com">drupalsupport@xecurify.com</a> or <a href="mailto:info@xecurify.com">info@xecurify.com</a></div><hr><br>',
);
self::faq($form, $form_state);
$form['miniorange_sp_guide_link_end'] = array(
'#markup' => '</div>',
);
}