You are here

public static function Utilities::send_support_query in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

SEND SUPPORT QUERY | NEW FEATURE REQUEST | DEMO REQUEST

_type = Support | Demo Request | New Feature Request

Parameters

$email:

$phone:

$query:

1 call to Utilities::send_support_query()
MiniorangeSupport::submitForm in src/Form/MiniorangeSupport.php
Form submission handler.

File

src/Utilities.php, line 181

Class

Utilities
This file is part of miniOrange SAML plugin.

Namespace

Drupal\miniorange_saml

Code

public static function send_support_query($email, $phone, $query, $query_type) {
  $support = new MiniorangeSamlSupport($email, $phone, $query, $query_type);
  $support_response = $support
    ->sendSupportQuery();
  if ($support_response) {
    \Drupal::messenger()
      ->addMessage(t('Thanks for getting in touch! We will get back to you shortly.'));
  }
  else {
    \Drupal::messenger()
      ->addMessage(t('Error submitting the support query. Please send us your query at <a href="mailto:info@xecurify.com">info@xecurify.com</a>.'), 'error');
  }
}