You are here

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.

File

templates/moderation-sidebar-container.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the Moderation Sidebar's container.
  5. *
  6. * This is what appears in the Moderation sidebar when moderating an entity.
  7. *
  8. * Available variables:
  9. * - element: Render element.
  10. * - info: Information about the moderation state.
  11. * - actions: The moderation actions that can be performed.
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <div{{ attributes }}>
  17. {% if element.info %}
  18. {{ element.info }}
  19. {% endif %}
  20. {% if element.actions.primary %}
  21. <div class="moderation-sidebar-primary-tasks">
  22. {{ element.actions.primary }}
  23. </div>
  24. {% endif %}
  25. {% if element.actions.secondary %}
  26. <div class="moderation-sidebar-secondary-tasks">
  27. {{ element.actions.secondary }}
  28. </div>
  29. {% endif %}
  30. </div>