You are here

og-member-count.html.twig in Organic groups 8

Default theme implementation to show the member count of a group.

Available variables:

  • count: The number of members in the group.
  • membership_states: An array of membership states included in the count.
  • group: The group, which is a content entity.
  • group_label: The group label.

File

templates/og-member-count.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to show the member count of a group.
  5. *
  6. * Available variables:
  7. * - count: The number of members in the group.
  8. * - membership_states: An array of membership states included in the count.
  9. * - group: The group, which is a content entity.
  10. * - group_label: The group label.
  11. *
  12. * @see \Drupal\og\Plugin\Block\MemberCountBlock
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <p>
  18. {% trans %}
  19. {{ group_label }} has 1 member.
  20. {% plural count %}
  21. {{ group_label }} has {{ count }} members.
  22. {% endtrans %}
  23. </p>