views-view-opml.html.twig

Same filename in this branch
  1. 9 core/themes/stable9/templates/views/views-view-opml.html.twig
  2. 9 core/themes/stable/templates/views/views-view-opml.html.twig
  3. 9 core/modules/views/templates/views-view-opml.html.twig
Same filename in other branches
  1. 8.9.x core/themes/stable/templates/views/views-view-opml.html.twig
  2. 8.9.x core/themes/classy/templates/views/views-view-opml.html.twig
  3. 8.9.x core/modules/views/templates/views-view-opml.html.twig
  4. 10 core/themes/stable9/templates/views/views-view-opml.html.twig
  5. 10 core/modules/views/templates/views-view-opml.html.twig
  6. 11.x core/themes/stable9/templates/views/views-view-opml.html.twig
  7. 11.x core/modules/views/templates/views-view-opml.html.twig

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.

See also

template_preprocess_views_view_opml()

File

core/themes/classy/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>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.