moderation-sidebar-container.html.twig in Moderation Sidebar 8
Default theme implementation for the Moderation Sidebar's container.
This is what appears in the Moderation sidebar when moderating an entity.
Available variables:
- element: Render element.
- info: Information about the moderation state.
- actions: The moderation actions that can be performed.
1 theme call to moderation-sidebar-container.html.twig
- ModerationSidebarController::sideBar in src/
Controller/ ModerationSidebarController.php - Displays information relevant to moderating an entity in-line.
File
templates/moderation-sidebar-container.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the Moderation Sidebar's container.
- *
- * This is what appears in the Moderation sidebar when moderating an entity.
- *
- * Available variables:
- * - element: Render element.
- * - info: Information about the moderation state.
- * - actions: The moderation actions that can be performed.
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes }}>
- {% if element.info %}
- {{ element.info }}
- {% endif %}
-
- {% if element.actions.primary %}
- <div class="moderation-sidebar-primary-tasks">
- {{ element.actions.primary }}
- </div>
- {% endif %}
-
- {% if element.actions.secondary %}
- <div class="moderation-sidebar-secondary-tasks">
- {{ element.actions.secondary }}
- </div>
- {% endif %}
- </div>