core/modules/views/src/Plugin/views/style/Rss.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/modules/views/src/Plugin/views/style/Rss.php b/core/modules/views/src/Plugin/views/style/Rss.php index 89a41be..d40acf2 100644 --- a/core/modules/views/src/Plugin/views/style/Rss.php +++ b/core/modules/views/src/Plugin/views/style/Rss.php @@ -43,12 +43,11 @@ public function attachTo(array &$build, $display_id, $path, $title) { $url = _url($this->view->getUrl(NULL, $path), $url_options); // Add the RSS icon to the view. - $feed_icon = array( + $this->view->feed_icon = [ '#theme' => 'feed_icon', '#url' => $url, '#title' => $title, - ); - $this->view->feed_icon = $feed_icon; + ]; // Attach a link to the RSS feed, which is an alternate representation. $build['#attached']['html_head_link'][][] = array(