<?php

/**
 * @file
 * Functions to support theming form layout in the Toc GA theme.
 */

/**
 * Implements hook_form_alter().
 */
function toc_ga_preprocess_input__submit(&$vars): void {
  $element = $vars['element'];

  if (!empty($element['#submit']) && in_array('::submitForm', $element['#submit'])) {
    $vars['outline'] = FALSE;
    $vars['size'] = 'lg';
  }
}
