You are here

public function AggregatorFeedBlock::defaultConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock::defaultConfiguration()

Overrides BlockPluginTrait::defaultConfiguration

File

core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php, line 76

Class

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

Namespace

Drupal\aggregator\Plugin\Block

Code

public function defaultConfiguration() {

  // By default, the block will contain 10 feed items.
  return [
    'block_count' => 10,
    'feed' => NULL,
  ];
}