Drupal 8 : How to remove class of form?

by Mike   Last Updated November 13, 2017 09:07 AM

Drupal form is generating below HTML

 <input class="btn--primary  button js-form-submit form-submit btn" data-drupal-selector="edit-next" id="edit-next" name="firstName" value="Submit" type="submit">

I would like to remove button class from that.

How can I achieve that in hook_form_FORM_ID_alter()?

Tags : 8

Related Questions