public function getSiteMap()
    {
        $sitemap = $this->getCacheItem('site-map');

        if (null === $sitemap) {
            /* @var $menuService MenuService */
            $menuService = $this->getService(MenuService::class);

            $navigation = $menuService->getPages();

            $argv = $this->prepareEventArguments(compact('navigation'));
            $this->getEventManager()->trigger('uthando.site-map', $this, $argv);

            $sitemap = $this->getService('ViewHelperManager')
                ->get(Navigation::class)
                ->setRole('guest')
                ->sitemap($navigation)
                ->render();

            $this->setCacheItem('site-map', $sitemap);
        }

        return $sitemap;
    }
public function getSiteMap()
    {
        $sitemap = $this->getCacheItem('site-map');

        if (null === $sitemap) {
            /* @var $menuService MenuService */
            $menuService = $this->getService(MenuService::class);

            $navigation = $menuService->getPages();

            $argv = $this->prepareEventArguments(compact('navigation'));
            $this->getEventManager()->trigger('uthando.site-map', $this, $argv);

            $sitemap = $this->getService('ViewHelperManager')
                ->get(Navigation::class)
                ->setRole('guest')
                ->sitemap($navigation)
                ->render();

            $this->setCacheItem('site-map', $sitemap);
        }

        return $sitemap;
    }
public function getSiteMap ( ) { $ sitemap = $ this -> getCacheItem ( 'site-map' ) ; if ( null === $ sitemap ) { /* @var $menuService MenuService */ $ menuService = $ this -> getService ( MenuService :: class ) ; $ navigation = $ menuService -> getPages ( ) ; $ argv = $ this -> prepareEventArguments ( compact ( 'navigation' ) ) ; $ this -> getEventManager ( ) -> trigger ( 'uthando.site-map' , $ this , $ argv ) ; $ sitemap = $ this -> getService ( 'ViewHelperManager' ) -> get ( Navigation :: class ) -> setRole ( 'guest' ) -> sitemap ( $ navigation ) -> render ( ) ; $ this -> setCacheItem ( 'site-map' , $ sitemap ) ; } return $ sitemap ; }
Returns a formatted xml sitemap string

@return string
Returns a formatted xml sitemap string