diff --git a/localgov.profile b/localgov.profile index af6aafa..bd521e3 100644 --- a/localgov.profile +++ b/localgov.profile @@ -5,6 +5,8 @@ * Enables modules and site configuration for a Localgov site installation. */ +use Drupal\Core\Form\FormStateInterface; + /** * Implements hook_page_attachments(). */ @@ -45,3 +47,10 @@ function localgov_post_install_task(): void { $hook(); }); } + +/** + * Implements hook_form_alter(). + */ +function localgov_form_alter(&$form, FormStateInterface $form_state, $form_id): void { + $form['#attributes']['novalidate'] = 'novalidate'; +}