XmlSitemapRenderer

class \TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer

Class to render the XML Sitemap to be used as a UserFunction

Table of Contents

Properties

$configuration  : array
$typoScriptService  : TypoScriptService
$view  : StandaloneView

Methods

__construct()  : mixed
render()  : string
getStandaloneView()  : StandaloneView
getXslFilePath()  : string
initialize()  : mixed
renderIndex()  : string
renderSitemap()  : string

Properties

$configuration

protected array $configuration

Methods

render()

public render(string $_, array $typoScriptConfiguration, ServerRequestInterface $request) : string

Parameters

$_ : string

unused, but needed as this is called via userfunc and passes a string as first parameter

$typoScriptConfiguration : array

TypoScript configuration specified in USER Content Object

$request : ServerRequestInterface

Tags

throws
InvalidConfigurationException

Return values

string

getXslFilePath()

protected getXslFilePath([string|null $sitemapType = null ][, string|null $sitemap = null ]) : string

Parameters

$sitemapType : string|null = null
$sitemap : string|null = null

Return values

string

initialize()

protected initialize(array $fullConfiguration) : mixed

Parameters

$fullConfiguration : array

renderIndex()

protected renderIndex(ServerRequestInterface $request, string $sitemapType) : string

Parameters

$request : ServerRequestInterface
$sitemapType : string

Return values

string

renderSitemap()

protected renderSitemap(ServerRequestInterface $request, string $sitemap, string $sitemapType) : string

Parameters

$request : ServerRequestInterface
$sitemap : string
$sitemapType : string

Tags

throws
InvalidConfigurationException

Return values

string
On this page