You are here

consumer.html.twig in Consumers 8

Default theme implementation to display a node.

Available variables:

  • client: The consumer entity that is requesting access.
  • title_attributes: Same as attributes, except applied to the main title tag that appears in the template.
  • content_attributes: Same as attributes, except applied to the main content tag that appears in the template.
  • title_prefix: Additional output populated by modules, intended to be displayed in front of the main title tag that appears in the template.
  • title_suffix: Additional output populated by modules, intended to be displayed after the main title tag that appears in the template.
  • view_mode: View mode; for example, "teaser" or "full".
  • is_admin: Flag for admin user status. Will be true when the current user is an administrator.
  • logged_in: Flag for logged in users. Will be true when the current user is logged in.
  • content: Rendered chidler of the elements array.
  • elements: The raw render array.

File

templates/consumer.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a node.
  5. *
  6. * Available variables:
  7. * - client: The consumer entity that is requesting access.
  8. * - title_attributes: Same as attributes, except applied to the main title
  9. * tag that appears in the template.
  10. * - content_attributes: Same as attributes, except applied to the main
  11. * content tag that appears in the template.
  12. * - title_prefix: Additional output populated by modules, intended to be
  13. * displayed in front of the main title tag that appears in the template.
  14. * - title_suffix: Additional output populated by modules, intended to be
  15. * displayed after the main title tag that appears in the template.
  16. * - view_mode: View mode; for example, "teaser" or "full".
  17. * - is_admin: Flag for admin user status. Will be true when the current user
  18. * is an administrator.
  19. * - logged_in: Flag for logged in users. Will be true when the current user
  20. * is logged in.
  21. * - content: Rendered chidler of the elements array.
  22. * - elements: The raw render array.
  23. *
  24. * @see template_preprocess_consumer()
  25. *
  26. * @ingroup themeable
  27. */
  28. #}
  29. <article{{ attributes }}>
  30. <header>
  31. {{ title_prefix }}
  32. <h2{{ title_attributes }}>{{ label }}</h2>
  33. {{ title_suffix }}
  34. </header>
  35. <section>{{ image }}</section>
  36. <section>{{ description }}</section>
  37. </article>