function AggregatorFeedBlock::defaultConfiguration

Same name in other branches
  1. 8.9.x 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,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.