options = array_merge(['text' => ''], $options); } public function setRequest(ServerRequestInterface $request): void { $this->request = $request; } public function renderWidgetContent(): string { $view = $this->backendViewFactory->create($this->request); $view->assignMultiple([ 'text' => $this->options['text'], 'options' => $this->options, 'button' => $this->buttonProvider, 'configuration' => $this->configuration, ]); return $view->render('Widget/CtaWidget'); } public function getOptions(): array { return $this->options; } }