Sonata\Exporter\Writer\SitemapWriter::getHeaderByFlag PHP Метод

getHeaderByFlag() защищенный Метод

Generate additional header with namespace adapted to the content.
protected getHeaderByFlag ( ) : string
Результат string
    protected function getHeaderByFlag()
    {
        $namespaces = array('video' => 'xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"', 'image' => 'xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"');
        $result = '';
        foreach ($this->headers as $flag) {
            $result .= ' ' . $namespaces[$flag];
        }
        return $result;
    }