webform-submission.html.twig in Webform 8.5
Same filename and directory in other branches
Default theme implementation for webform submission.
Available variables:
- elements: An array of elements to display in view mode.
- webform_submission: The webform submission.
- webform: The webform.
See also
1 theme call to webform-submission.html.twig
- WebformSubmissionViewController::view in src/
Controller/ WebformSubmissionViewController.php - Provides a page to render a single entity.
File
templates/webform-submission.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for webform submission.
- *
- * Available variables:
- * - elements: An array of elements to display in view mode.
- * - webform_submission: The webform submission.
- * - webform: The webform.
- *
- * @see template_preprocess_webform_submission()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- 'webform-submission',
- 'webform-submission--webform-' ~ webform.id()|clean_class,
- webform_submission.isSticky() ? 'webform-submission--sticky',
- view_mode ? 'webform-submission--view-mode-' ~ view_mode|clean_class,
- ]
- %}
- <div{{ attributes.addClass(classes) }}>
- {{ navigation }}
- {{ information }}
- {{ submission }}
- </div>