You are here

public function StatisticsPopularBlock::defaultConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php \Drupal\statistics\Plugin\Block\StatisticsPopularBlock::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides BlockBase::defaultConfiguration

File

core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php, line 28
Contains \Drupal\statistics\Plugin\Block\StatisticsPopularBlock.

Class

StatisticsPopularBlock
Provides a 'Popular content' block.

Namespace

Drupal\statistics\Plugin\Block

Code

public function defaultConfiguration() {
  return array(
    'top_day_num' => 0,
    'top_all_num' => 0,
    'top_last_num' => 0,
  );
}