You are here

prev-next-block.html.twig in Previous/Next API 8.2

Default theme implementation to display previous next block.

Available variables:

  • prev_display: Flag for displaying previous text.
  • prev_text: Previous text.
  • prev_id: Previous Entity Id.
  • next_display: Flag for displaying next text.
  • next_text: Next text.
  • next_id: Next Entity id.

File

templates/prev-next-block.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display previous next block.
  5. *
  6. * Available variables:
  7. * - prev_display: Flag for displaying previous text.
  8. * - prev_text: Previous text.
  9. * - prev_id: Previous Entity Id.
  10. * - next_display: Flag for displaying next text.
  11. * - next_text: Next text.
  12. * - next_id: Next Entity id.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% if prev_display %}
  18. <div class="prev"><a href="/node/{{ prev_id }}">{{ prev_text }}</a></div>
  19. {% endif %}
  20. {% if next_display %}
  21. <div class="next"><a href="/node/{{ next_id }}">{{ next_text }}</a></div>
  22. {% endif %}