content-sync-message.html.twig in Content Synchronization 8.2
Same filename and directory in other branches
Default theme implementation of a Content Sync 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 also
File
templates/content-sync-message.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation of a Content Sync 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_content_sync_message()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- has_parent ? 'js-form-wrapper',
- has_parent ? 'form-wrapper',
- ]
- %}
- {% if not closed %}
- <div{{ attributes.addClass(classes) }}>{{ message }}</div>
- {% endif %}