Zwischenstand
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user