public getXDefaultLocalization ( ) : |
||
리턴 |
/** * {@inheritdoc} */ public function renderSitemap($alias, $page, $locale, Portal $portal, $host, $scheme) { if (!$this->sitemapProviderPool->hasProvider($alias)) { return; } $provider = $this->sitemapProviderPool->getProvider($alias); if ($provider->getMaxPage() < $page) { return; } $entries = $provider->build($page, $portal->getKey(), $locale); return $this->render('SuluWebsiteBundle:Sitemap:sitemap.xml.twig', ['webspaceKey' => $portal->getWebspace()->getKey(), 'locale' => $locale, 'defaultLocale' => $portal->getXDefaultLocalization()->getLocale(), 'domain' => $host, 'scheme' => $scheme, 'entries' => $entries]); }