You are here

public function MiniorangeConfigOAuthClient::saved_support in OAuth2 Login 8

Send support query.

File

src/Form/MiniorangeConfigOAuthClient.php, line 476

Class

MiniorangeConfigOAuthClient

Namespace

Drupal\oauth2_login\Form

Code

public function saved_support(array &$form, \Drupal\Core\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);
}