You are here

paragraphs-previewer-modal-content.html.twig in Paragraphs Previewer 8

Default theme implementation for a paragraphs previewer modal content.

Available variables:

  • preview_url: The Drupal\Core\Url object for the preview.
  • preview_url_string: The rendered preview url.

File

templates/paragraphs-previewer-modal-content.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a paragraphs previewer modal content.
  5. *
  6. * Available variables:
  7. * - preview_url: The Drupal\Core\Url object for the preview.
  8. * - preview_url_string: The rendered preview url.
  9. *
  10. * @see template_preprocess()
  11. * @see template_preprocess_paragraphs_previewer_modal_content()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <div class="paragraphs-previewer-wrapper">
  17. {% if preview_url_string %}
  18. <iframe src="{{ preview_url_string }}" class="paragraphs-previewer-iframe"></iframe>
  19. {% else %}
  20. <p>
  21. {% trans %}
  22. No preview available.
  23. {% endtrans %}
  24. </p>
  25. {% endif %}
  26. </div>