Zwischenstand

This commit is contained in:
Sven Wappler
2021-08-20 13:33:13 +02:00
parent ce6b9e38dc
commit 508d3d2759
32 changed files with 2807 additions and 602 deletions

View File

@@ -4,7 +4,6 @@
namespace WapplerSystems\BookmarksLikesRatings\Widgets;
use TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface;
use TYPO3\CMS\Dashboard\Widgets\ListDataProviderInterface;
use TYPO3\CMS\Dashboard\Widgets\WidgetConfigurationInterface;
use TYPO3\CMS\Dashboard\Widgets\WidgetInterface;
use TYPO3\CMS\Fluid\View\StandaloneView;
@@ -53,9 +52,9 @@ class TopLikesWidget implements WidgetInterface
public function renderWidgetContent(): string
{
$this->view->setTemplate('Widget/ListWidget');
$this->view->setTemplate('TopLikesWidget');
$this->view->assignMultiple([
'items' => $this->getItems(),
'items' => $this->dataProvider->getItems(),
'options' => $this->options,
'button' => $this->buttonProvider,
'configuration' => $this->configuration,
@@ -63,8 +62,4 @@ class TopLikesWidget implements WidgetInterface
return $this->view->render();
}
protected function getItems(): array
{
return $this->dataProvider->getTopLikes();
}
}