public function AggregatorFeedBlock::defaultConfiguration in Drupal 9
Same name and namespace in other branches
- 8 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\BlockCode
public function defaultConfiguration() {
// By default, the block will contain 10 feed items.
return [
'block_count' => 10,
'feed' => NULL,
];
}