webform-confirmation.html.twig in Webform 8.5
Same filename and directory in other branches
Default theme implementation to webform confirmation.
Available variables:
- progress: Progress bar.
- message: Confirmation message.
- back_url: URL to the previous webform submission.
See also
2 theme calls to webform-confirmation.html.twig
- WebformEntityController::confirmation in src/
Controller/ WebformEntityController.php - Returns a webform confirmation page.
- WebformSubmissionForm::getCustomForm in src/
WebformSubmissionForm.php - Get custom webform which is displayed instead of the webform's elements.
File
templates/webform-confirmation.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to webform confirmation.
- *
- * Available variables:
- * - progress: Progress bar.
- * - message: Confirmation message.
- * - back_url: URL to the previous webform submission.
- *
- * @see template_preprocess_webform_confirmation()
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('webform/webform.confirmation') }}
-
- {% if progress %}
- {{ progress }}
- {% endif %}
-
- <div{{ attributes.addClass('webform-confirmation') }}>
-
- {% if message %}
- <div class="webform-confirmation__message">{{ message }}</div>
- {% endif %}
-
- {% if back %}
- <div class="webform-confirmation__back">
- <a href="{{ back_url }}" rel="prev"{{ back_attributes }}>{{ back_label }}</a>
- </div>
- {% endif %}
-
- </div>