You are here

public function MiniorangeRFD::submitForm in OAuth2 Login 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

src/Form/MiniorangeRFD.php, line 89
Contains Attribute for miniOrange OAuth Client Module.

Class

MiniorangeRFD

Namespace

Drupal\oauth2_login\Form

Code

public function submitForm(array &$form, \Drupal\Core\Form\FormStateInterface $form_state) {
  $email = trim($form['customer_email']['#value']);
  $demo_plan = $form['demo_plan']['#value'];
  $description_doubt = trim($form['description_doubt']['#value']);
  $query = $demo_plan . ' -> ' . $description_doubt;
  Utilities::send_demo_query($email, $query, $description_doubt);
}