public function AggregatorFeedBlock::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock::__construct()
Constructs an AggregatorFeedBlock object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\aggregator\FeedStorageInterface $feed_storage: The entity storage for feeds.
\Drupal\aggregator\ItemStorageInterface $item_storage: The entity storage for feed items.
\Drupal\Core\Entity\Query\QueryInterface $item_query: The entity query object for feed items.
Overrides BlockBase::__construct
File
- core/
modules/ aggregator/ src/ Plugin/ Block/ AggregatorFeedBlock.php, line 69 - Contains \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock.
Class
- AggregatorFeedBlock
- Provides an 'Aggregator feed' block with the latest items from the feed.
Namespace
Drupal\aggregator\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, FeedStorageInterface $feed_storage, ItemStorageInterface $item_storage, QueryInterface $item_query) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->feedStorage = $feed_storage;
$this->itemStorage = $item_storage;
$this->itemQuery = $item_query;
}