Trying to add a new template for a specific form but need the hook at form_element. I've seen this old post about being unable to access the form within this hook. Any ideas on how I can traverse up somehow? I basically need the suggestion for one form only.
function MYMODULE_theme_suggestions_form_element_alter(array &$suggestions, array $variables, $hook) {
if ( $variables['element']['#id'] === 'FORMID') {
$suggestions[] = $hook . '__custom';
}
}