You are here

views-view-opml.html.twig in Drupal 10

Theme override for feed displays that use the OPML style.

Available variables:

  • title: The title of the feed (as set in the view).
  • updated: The modified date of the feed.
  • items: The feed items themselves.

File

core/themes/starterkit_theme/templates/views/views-view-opml.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for feed displays that use the OPML style.
  5. *
  6. * Available variables:
  7. * - title: The title of the feed (as set in the view).
  8. * - updated: The modified date of the feed.
  9. * - items: The feed items themselves.
  10. *
  11. * @see template_preprocess_views_view_opml()
  12. */
  13. #}
  14. <?xml version="1.0" encoding="utf-8"?>
  15. <opml version="2.0">
  16. <head>
  17. <title>{{ title }}</title>
  18. <dateModified>{{ updated }}</dateModified>
  19. </head>
  20. <body>
  21. {{ items }}
  22. </body>
  23. </opml>