XmlSitemapRenderer

final readonly class \TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer

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

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
render()  : string

Methods

__construct()

public __construct(TypoScriptService $typoScriptService, ErrorController $errorController, ViewFactoryInterface $viewFactory, PolicyRegistry $policyRegistry, SystemResourceFactory $resourceFactory, SystemResourcePublisherInterface $resourcePublisher, XmlSitemapFactory $xmlSitemapFactory) : mixed

Parameters

$typoScriptService : TypoScriptService
$errorController : ErrorController
$viewFactory : ViewFactoryInterface
$policyRegistry : PolicyRegistry
$resourceFactory : SystemResourceFactory
$resourcePublisher : SystemResourcePublisherInterface
$xmlSitemapFactory : XmlSitemapFactory

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

Attributes

#[AsAllowedCallable]

Return values

string
On this page