You are here

workspace-rev.html.twig in Workspace 8

Default theme implementation for Multiversion revisions.

Available variables:

  • entity_type_id: The entity type ID.
  • entity_id: The entity ID.
  • revision_id: The entity revision ID.
  • uuid: The entity UUID.
  • rev: The revision token.
  • status: The status of the revision.
  • open_rev: Whether the revision is open or not.
  • conflict: Whether the revision is a conflict or not.
  • default: Whether the revision is the defaukt one or not.
  • title: The revision token linked to a view of the revision.

See also

template_preprocess_multiversion_rev()

File

templates/workspace-rev.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for Multiversion revisions.
  5. *
  6. * Available variables:
  7. * - entity_type_id: The entity type ID.
  8. * - entity_id: The entity ID.
  9. * - revision_id: The entity revision ID.
  10. * - uuid: The entity UUID.
  11. * - rev: The revision token.
  12. * - status: The status of the revision.
  13. * - open_rev: Whether the revision is open or not.
  14. * - conflict: Whether the revision is a conflict or not.
  15. * - default: Whether the revision is the defaukt one or not.
  16. *
  17. * - title: The revision token linked to a view of the revision.
  18. *
  19. * @see template_preprocess_multiversion_rev()
  20. *
  21. * @ingroup themeable
  22. */
  23. #}
  24. <div class="rev{{ default ? ' color-success' }}{{ conflict ? ' color-error' }}">
  25. <h3 class="rev__title">{{ title }}</h3>
  26. <hr>
  27. {% trans %}Status: {{ status }}{% endtrans %}
  28. </div>