public function AggregatorFeedBlock::blockForm

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

Overrides BlockBase::blockForm

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php, line 47
Contains \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock.

Class

AggregatorFeedBlock
Provides an 'Aggregator feed' block with the latest items from the feed.

Namespace

Drupal\aggregator\Plugin\Block

Code

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