This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/modules/contrib/webform/templates/webform-message.html.twig
2017-03-16 15:29:07 +00:00

28 lines
691 B
Twig

{#
/**
* @file
* Default theme implementation of a Webform message container.
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - message: The rendered status_messages elements.
* - has_parent: A flag to indicate that the container has one or more parent
* containers.
* - closed: A flag to indicate that the message has been been closed and should
* not be displayed.
*
* @see template_preprocess_webform_message()
*
* @ingroup themeable
*/
#}
{%
set classes = [
has_parent ? 'js-form-wrapper',
has_parent ? 'form-wrapper',
]
%}
{% if not closed %}
<div{{ attributes.addClass(classes) }}>{{ message }}</div>
{% endif %}