function AggregatorFeedBlock::defaultConfiguration

Same name and namespace in other branches
  1. 9 core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock::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.