How do I define a separate form template for a multistep form? I have a multistep webform in Drupal 8. I want to define spearate page template for each page in the webform.

I'm trying to define it using hook_theme_suggestions_hook() like below. But how can I identify the current webform page currently viewing from $variables.

function custom_module_theme_suggestions_webform(array $variables) {
  $suggestions = array();

  $suggestions[] = 'webform__'.$current_page;

  return $suggestions;
}
I have fixed the issue using D8 temp storage functionality. I was able to get the current step in my form_alter() hook, and I stored it in to a temp variable and accessed it in theme_hook_suggestions() hook().

/**
 * Implements hook_form_alter().
 */
function custom_module_form_alter(&amp;$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  if($form_id == 'mywebform_id') {

    $current_page = $form_state-&gt;get('current_page');

    $tempstore = \Drupal::service('user.private_tempstore')-&gt;get('custom_module');
    $tempstore-&gt;set('current_page', $current_page);
  }
}

function custom_module_theme_suggestions_webform(array $variables) {
  $tempstore = \Drupal::service('user.private_tempstore')-&gt;get('custom_module');
  $current_page = $tempstore-&gt;get('current_page');

  $suggestions = array();

  $suggestions[] = 'webform__'.$current_page;

  return $suggestions;
}