You are here

public function MiniorangeRFD::submitForm in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO 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 95
Contains Attribute for miniOrange OAuth Client Module.

Class

MiniorangeRFD

Namespace

Drupal\miniorange_oauth_client\Form

Code

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