‪TYPO3CMS  ‪main
TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer Class Reference

Public Member Functions

 __construct (private readonly TypoScriptService $typoScriptService, private readonly RenderingContextFactory $renderingContextFactory,)
 
 render (string $_, array $typoScriptConfiguration, ServerRequestInterface $request)
 

Private Member Functions

 renderIndex (ServerRequestInterface $request, TemplateView $view, array $configConfiguration, string $sitemapType)
 
 renderSitemap (ServerRequestInterface $request, TemplateView $view, array $configConfiguration, string $sitemapType, string $sitemapName)
 
 getXslFilePath (array $configConfiguration, string $sitemapType, string $sitemapName=null)
 

Detailed Description

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

this class is not part of TYPO3's Core API.

Definition at line 35 of file XmlSitemapRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::__construct ( private readonly TypoScriptService  $typoScriptService,
private readonly RenderingContextFactory  $renderingContextFactory 
)

Definition at line 37 of file XmlSitemapRenderer.php.

Member Function Documentation

◆ getXslFilePath()

TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::getXslFilePath ( array  $configConfiguration,
string  $sitemapType,
string  $sitemapName = null 
)
private

◆ render()

TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::render ( string  $_,
array  $typoScriptConfiguration,
ServerRequestInterface  $request 
)
Parameters
string$_‪unused, but needed as this is called via userfunc and passes a string as first parameter
array$typoScriptConfiguration‪TypoScript configuration specified in USER Content Object
Exceptions
InvalidConfigurationException

Definition at line 47 of file XmlSitemapRenderer.php.

References TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\getXslFilePath(), TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\renderIndex(), and TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer\renderSitemap().

◆ renderIndex()

TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::renderIndex ( ServerRequestInterface  $request,
TemplateView  $view,
array  $configConfiguration,
string  $sitemapType 
)
private

◆ renderSitemap()

TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer::renderSitemap ( ServerRequestInterface  $request,
TemplateView  $view,
array  $configConfiguration,
string  $sitemapType,
string  $sitemapName 
)
private