public function RecentCommentsBlock::blockForm

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

Overrides BlockBase::blockForm

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/Block/RecentCommentsBlock.php, line 44
Contains \Drupal\comment\Plugin\Block\RecentCommentsBlock.

Class

RecentCommentsBlock
Provides a 'Recent comments' block.

Namespace

Drupal\comment\Plugin\Block

Code

public function blockForm($form, &$form_state) {
  $form['block_count'] = array(
    '#type' => 'select',
    '#title' => t('Number of recent comments'),
    '#default_value' => $this->configuration['block_count'],
    '#options' => drupal_map_assoc(array(
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15,
      16,
      17,
      18,
      19,
      20,
      25,
      30,
    )),
  );
  return $form;
}