diff --git a/typo3/sysext/dashboard/Classes/Widgets/ListWidget.php b/typo3/sysext/dashboard/Classes/Widgets/ListWidget.php
index cc09c3a0b1a18c4e6764285df8ff45cd546e59c7..09eb2ede5001a97768edb24b154b10e68f23a49f 100644
--- a/typo3/sysext/dashboard/Classes/Widgets/ListWidget.php
+++ b/typo3/sysext/dashboard/Classes/Widgets/ListWidget.php
@@ -17,6 +17,7 @@ declare(strict_types=1);
 
 namespace TYPO3\CMS\Dashboard\Widgets;
 
+use TYPO3\CMS\Dashboard\Utility\ButtonUtility;
 use TYPO3\CMS\Dashboard\Widgets\Interfaces\ButtonProviderInterface;
 use TYPO3\CMS\Dashboard\Widgets\Interfaces\ListDataProviderInterface;
 use TYPO3\CMS\Dashboard\Widgets\Interfaces\WidgetConfigurationInterface;
@@ -80,7 +81,7 @@ class ListWidget implements WidgetInterface
         $this->view->assignMultiple([
             'items' => $this->getItems(),
             'options' => $this->options,
-            'button' => $this->getButton(),
+            'button' => ButtonUtility::generateButtonConfig($this->buttonProvider),
             'configuration' => $this->configuration,
         ]);
         return $this->view->render();
@@ -90,19 +91,4 @@ class ListWidget implements WidgetInterface
     {
         return $this->dataProvider->getItems();
     }
-
-    private function getButton(): array
-    {
-        $button = [];
-
-        if ($this->buttonProvider instanceof ButtonProviderInterface && $this->buttonProvider->getTitle() && $this->buttonProvider->getLink()) {
-            $button = [
-                'text' => $this->buttonProvider->getTitle(),
-                'link' => $this->buttonProvider->getLink(),
-                'target' => $this->buttonProvider->getTarget(),
-            ];
-        }
-
-        return $button;
-    }
 }
diff --git a/typo3/sysext/dashboard/Classes/Widgets/RssWidget.php b/typo3/sysext/dashboard/Classes/Widgets/RssWidget.php
index 30091e7698a815dc6799faa9782ee347aebb9601..7870bf5296b3a92058ff2047a70476b2e46da46b 100644
--- a/typo3/sysext/dashboard/Classes/Widgets/RssWidget.php
+++ b/typo3/sysext/dashboard/Classes/Widgets/RssWidget.php
@@ -19,6 +19,7 @@ namespace TYPO3\CMS\Dashboard\Widgets;
 
 use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface as Cache;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Dashboard\Utility\ButtonUtility;
 use TYPO3\CMS\Dashboard\Widgets\Interfaces\ButtonProviderInterface;
 use TYPO3\CMS\Dashboard\Widgets\Interfaces\WidgetConfigurationInterface;
 use TYPO3\CMS\Dashboard\Widgets\Interfaces\WidgetInterface;
@@ -91,7 +92,7 @@ class RssWidget implements WidgetInterface
         $this->view->assignMultiple([
             'items' => $this->getRssItems(),
             'options' => $this->options,
-            'button' => $this->getButton(),
+            'button' => ButtonUtility::generateButtonConfig($this->buttonProvider),
             'configuration' => $this->configuration,
         ]);
         return $this->view->render();
@@ -127,19 +128,4 @@ class RssWidget implements WidgetInterface
 
         return $items;
     }
-
-    private function getButton(): array
-    {
-        $button = [];
-
-        if ($this->buttonProvider instanceof ButtonProviderInterface && $this->buttonProvider->getTitle() && $this->buttonProvider->getLink()) {
-            $button = [
-                'text' => $this->buttonProvider->getTitle(),
-                'link' => $this->buttonProvider->getLink(),
-                'target' => $this->buttonProvider->getTarget(),
-            ];
-        }
-
-        return $button;
-    }
 }