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.
1 theme call to og-member-count.html.twig
- MemberCountBlock::build in src/
Plugin/ Block/ MemberCountBlock.php - Builds and returns the renderable array for this block plugin.
File
templates/og-member-count.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see \Drupal\og\Plugin\Block\MemberCountBlock
- *
- * @ingroup themeable
- */
- #}
- <p>
- {% trans %}
- {{ group_label }} has 1 member.
- {% plural count %}
- {{ group_label }} has {{ count }} members.
- {% endtrans %}
- </p>