request = $request; } public function renderWidgetContent(): string { $view = $this->backendViewFactory->create($this->request); $view->assignMultiple([ 'items' => $this->getItems(), 'options' => $this->options, 'button' => $this->buttonProvider, 'configuration' => $this->configuration, ]); return $view->render('Widget/ListWidget'); } protected function getItems(): array { return $this->dataProvider->getItems(); } public function getOptions(): array { return $this->options; } }