public function StatisticsPopularBlock::blockSubmit in Drupal 9
Same name and namespace in other branches
- 8 core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php \Drupal\statistics\Plugin\Block\StatisticsPopularBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- core/
modules/ statistics/ src/ Plugin/ Block/ StatisticsPopularBlock.php, line 145
Class
- StatisticsPopularBlock
- Provides a 'Popular content' block.
Namespace
Drupal\statistics\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['top_day_num'] = $form_state
->getValue('statistics_block_top_day_num');
$this->configuration['top_all_num'] = $form_state
->getValue('statistics_block_top_all_num');
$this->configuration['top_last_num'] = $form_state
->getValue('statistics_block_top_last_num');
}