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/themes/classy/templates/views/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

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.

See also

template_preprocess_views_view_opml()

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


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