configuration = $configuration; $this->view = $view; $this->options = $options; $this->buttonProvider = $buttonProvider; $this->dataProvider = $dataProvider; } public function renderWidgetContent(): string { $this->view->setTemplate('TopBookmarksWidget'); $this->view->assignMultiple([ 'items' => $this->dataProvider->getItems(), 'options' => $this->options, 'button' => $this->buttonProvider, 'configuration' => $this->configuration, ]); return $this->view->render(); } }