public function ForumBlockBase::blockForm

Overrides \Drupal\block\BlockBase::blockForm().

Overrides BlockBase::blockForm

File

drupal/core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php, line 40
Contains \Drupal\forum\Plugin\Block\ForumBlockBase.

Class

ForumBlockBase
Provides a base class for Forum blocks.

Namespace

Drupal\forum\Plugin\Block

Code

public function blockForm($form, &$form_state) {
  $form['block_count'] = array(
    '#type' => 'select',
    '#title' => t('Number of topics'),
    '#default_value' => $this->configuration['block_count'],
    '#options' => drupal_map_assoc(range(2, 20)),
  );
  return $form;
}