Classes/Domain/Repository/SitemapRepository.php
public function generateSitemap()
    {
        if ($this->findAllEntries()) {
            $sitemap = GeneralUtility::makeInstance(Sitemap::class);
            $sitemap->setUrlEntries($this->entryStorage);

            return $sitemap;
        }

        return null;
    }
public function generateSitemap()
    {
        if ($this->findAllEntries()) {
            $sitemap = GeneralUtility::makeInstance(Sitemap::class);
            $sitemap->setUrlEntries($this->entryStorage);

            return $sitemap;
        }

        return null;
    }
public function generateSitemap ( ) { if ( $ this -> findAllEntries ( ) ) { $ sitemap = GeneralUtility :: makeInstance ( Sitemap :: class ) ; $ sitemap -> setUrlEntries ( $ this -> entryStorage ) ; return $ sitemap ; } return null ; }
Generate a sitemap

@return Sitemap|null
Generate a sitemap