You are here

bootstrap-tabs-tabs.html.twig in Bootstrap Quick Tabs 8

Theme for Quick Tabs module's block content.

Available variables:

  • options: options array for the nav type
  • tabs: the array of titles

File

templates/bootstrap-tabs-tabs.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme for Quick Tabs module's block content.
  5. *
  6. * Available variables:
  7. * - options: options array for the nav type
  8. * - tabs: the array of titles
  9. *
  10. * @ingroup themeable
  11. */
  12. #}
  13. <ul{{ create_attribute({'class': [options.classes]}) }}>
  14. {% for tab_id, tab in tabs %}
  15. <li{{ create_attribute({'class': [tab.classes], 'role':'presentation'}) }}><a href="#{{ tab_id }}" data-toggle="tab">{{ tab.title }}</a></li>
  16. {% endfor %}
  17. </ul>