You are here

public function MiniorangeOAuthClientCustomerSetup::saved_support in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 8

File

src/Form/MiniorangeOAuthClientCustomerSetup.php, line 341
Contains \Drupal\miniorange_oauth_client\Form\MiniorangeOAuthClientCustomerSetup.

Class

MiniorangeOAuthClientCustomerSetup

Namespace

Drupal\miniorange_oauth_client\Form

Code

public function saved_support(array &$form, FormStateInterface $form_state) {
  $email = trim($form['miniorange_oauth_client_email_address']['#value']);
  $phone = $form['miniorange_oauth_client_phone_number']['#value'];
  $query = trim($form['miniorange_oauth_client_support_query']['#value']);
  Utilities::send_support_query($email, $phone, $query);
}