You are here

public function FileDownloadPopularBlock::blockSubmit in File Download 8

Overrides BlockPluginTrait::blockSubmit

File

modules/file_download_counter/src/Plugin/Block/FileDownloadPopularBlock.php, line 72

Class

FileDownloadPopularBlock
Provides a 'Popular content' block.

Namespace

Drupal\file_download_counter\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['top_day_num'] = $form_state
    ->getValue('file_download_counter_block_top_day_num');
  $this->configuration['top_all_num'] = $form_state
    ->getValue('file_download_counter_block_top_all_num');
  $this->configuration['top_last_num'] = $form_state
    ->getValue('file_download_counter_block_top_last_num');
}