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.
1 theme call to paragraphs-previewer-modal-content.html.twig
- ParagraphsPreviewerWidgetTrait::ajaxSubmitPreviewerItem in src/
Plugin/ Field/ FieldWidget/ ParagraphsPreviewerWidgetTrait.php - Previewer button AJAX callback.
File
templates/paragraphs-previewer-modal-content.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess()
- * @see template_preprocess_paragraphs_previewer_modal_content()
- *
- * @ingroup themeable
- */
- #}
- <div class="paragraphs-previewer-wrapper">
- {% if preview_url_string %}
- <iframe src="{{ preview_url_string }}" class="paragraphs-previewer-iframe"></iframe>
- {% else %}
- <p>
- {% trans %}
- No preview available.
- {% endtrans %}
- </p>
- {% endif %}
- </div>