Classes/Page/SitemapXmlPage.php
protected function build()
    {
        $page = Typo3GeneralUtility::_GP('page');

        /** @var \Metaseo\Metaseo\Sitemap\Generator\XmlGenerator $generator */
        $generator = $this->objectManager->get('Metaseo\\Metaseo\\Sitemap\\Generator\\XmlGenerator');

        if (empty($page) || $page === 'index') {
            return $generator->sitemapIndex();
        } else {
            return $generator->sitemap($page);
        }
    }
protected function build()
    {
        $page = Typo3GeneralUtility::_GP('page');

        /** @var \Metaseo\Metaseo\Sitemap\Generator\XmlGenerator $generator */
        $generator = $this->objectManager->get('Metaseo\\Metaseo\\Sitemap\\Generator\\XmlGenerator');

        if (empty($page) || $page === 'index') {
            return $generator->sitemapIndex();
        } else {
            return $generator->sitemap($page);
        }
    }
protected function build ( ) { $ page = Typo3GeneralUtility :: _GP ( 'page' ) ; /** @var \Metaseo\Metaseo\Sitemap\Generator\XmlGenerator $generator */ $ generator = $ this -> objectManager -> get ( 'Metaseo\\Metaseo\\Sitemap\\Generator\\XmlGenerator' ) ; if ( empty ( $ page ) || $ page === 'index' ) { return $ generator -> sitemapIndex ( ) ; } else { return $ generator -> sitemap ( $ page ) ; } }
Build sitemap index or specific page

@return string
Build sitemap index or specific page