Adding custom submit handler to form in Drupal 8

By default in a Drupal 8 form submitform($form, FormStateInterface $form_state) will handle the the submission of form values. However we can also add our own submit handlers easily with Drupal 8 form api. The below example explains that. Add the custom submit handler function with class name in the $form[‘#submit’] array   namespace Drupal\lnformcontrol\Form; use Continue Reading