Service/AbstractGenerator.php
protected function populate($section = null)
    {
        $event = new SitemapPopulateEvent($this, $section);
        $this->dispatcher->dispatch(SitemapPopulateEvent::ON_SITEMAP_POPULATE, $event);
    }
protected function populate($section = null)
    {
        $event = new SitemapPopulateEvent($this, $section);
        $this->dispatcher->dispatch(SitemapPopulateEvent::ON_SITEMAP_POPULATE, $event);
    }
protected function populate ( $ section = null ) { $ event = new SitemapPopulateEvent ( $ this , $ section ) ; $ this -> dispatcher -> dispatch ( SitemapPopulateEvent :: ON_SITEMAP_POPULATE , $ event ) ; }
Dispatches SitemapPopulate Event - the listeners should use it to add their URLs to the sitemap

@param string|null $section
Dispatches SitemapPopulate Event - the listeners should use it to add their URLs to the sitemap