printable.html.twig in Printer and PDF versions for Drupal 8+ 8
Same filename and directory in other branches
Default theme implementation for printer friendly version of entities.
Available variables:
- title: Top level node title.
- base_url: URL to the home page.
See also
2 theme calls to printable.html.twig
- PrintableFormatBase::buildContent in src/
Plugin/ PrintableFormatBase.php - Build a render array of the content, wrapped in the printable theme.
- PrintableFormatBase::buildContent in src/
Plugin/ PrintableFormatBase.php - Build a render array of the content, wrapped in the printable theme.
File
templates/printable.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for printer friendly version of entities.
- *
- * Available variables:
- * - title: Top level node title.
- * - base_url: URL to the home page.
- *
- * @see template_preprocess_printable()
- *
- * @ingroup themeable
- */
- #}
- <!DOCTYPE html>
- <html{{ html_attributes }}>
- <head>
- <title>{{ title }}</title>
- <style>
- .node_view ul li{
- display:none;
- }
- </style>
- <link type="text/css" rel="stylesheet" href="{{ base_url }}/css/drupal-printable.css" />
- {% if include_css %}
- <link type="text/css" rel="stylesheet" href="/{{ include_css }}" />
- {% endif %}
- {% if close_script %}
- <script type="text/javascript" src="{{ close_script }}"></script>
- {% else %}
- <script type="text/javascript" src="{{ send_script }}"></script>
- {% endif %}
- </head>
- <body>
- {{ header }}
- {{ content }}
- {{ footer }}
- </body>
- </html>