You are here

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

Default template 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/modules/views/templates/views-view-opml.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default template 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. * @ingroup themeable
  14. */
  15. #}
  16. <?xml version="1.0" encoding="utf-8"?>
  17. <opml version="2.0">
  18. <head>
  19. <title>{{ title }}</title>
  20. <dateModified>{{ updated }}</dateModified>
  21. </head>
  22. <body>
  23. {{ items }}
  24. </body>
  25. </opml>

Related topics