You are here

public function MemberCountBlock::blockForm in Organic groups 8

Overrides BlockPluginTrait::blockForm

File

src/Plugin/Block/MemberCountBlock.php, line 92

Class

MemberCountBlock
Provides a block that shows the number of members in the current group.

Namespace

Drupal\og\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  $form['count_blocked_users'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Count blocked users'),
    '#default_value' => $this->configuration['count_blocked_users'],
  ];
  $form['count_pending_users'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Count pending users'),
    '#default_value' => $this->configuration['count_pending_users'],
  ];
  return $form;
}