summaryrefslogtreecommitdiffstats
path: root/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php')
-rw-r--r--core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php b/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
index 16ca1af..b4b08b2 100644
--- a/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
+++ b/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
@@ -171,8 +171,9 @@ class AggregatorFeedBlock extends BlockBase implements ContainerFactoryPluginInt
$rendered_items = array();
foreach ($items as $item) {
$aggregator_block_item = array(
- '#theme' => 'aggregator_block_item',
- '#item' => $item,
+ '#type' => 'link',
+ '#href' => $item->getLink(),
+ '#title' => $item->label(),
);
$rendered_items[] = drupal_render($aggregator_block_item);
}