I have template named page--webform.tpl.twig which is kind of wrapper for multistep webform. I would like to print current step of the webform from that template.

Is there a way to access current step number from this template?

  • 1
    On the page level? But why? – leymannx Feb 4 '20 at 14:43
  • Not my decision. Front-ender organized templates that way. – MilanG Feb 5 '20 at 7:28
  • Hmm.. I'll try to convince front-ender to move the code to another template then. Would drupal/web/modules/contrib/webform/templates/webform-progress-tracker.html.twig be the right one? – MilanG Feb 5 '20 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.