/**
* {@inheritdoc}
*/
public function resolveForPreview($webspaceKey, $locale)
{
// take first portal url
$portalInformation = $this->webspaceManager->getPortalInformations($this->environment);
$portalUrl = array_keys($portalInformation)[0];
return ['request' => ['webspaceKey' => $webspaceKey, 'locale' => $locale, 'defaultLocale' => $locale, 'portalUrl' => $portalUrl, 'resourceLocatorPrefix' => '', 'resourceLocator' => '', 'get' => $this->requestStack->getCurrentRequest()->query->all(), 'post' => $this->requestStack->getCurrentRequest()->request->all(), 'analyticsKey' => $this->previewDefaults['analyticsKey']]];
}