‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Page\PageRenderer Class Reference
Inheritance diagram for TYPO3\CMS\Core\Page\PageRenderer:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 getState ()
 
 getJavaScriptRenderer ()
 
 setTitle ($title)
 
 setXmlPrologAndDocType ($xmlPrologAndDocType)
 
 setLanguage (Locale $locale)
 
 setHtmlTag ($htmlTag)
 
 setHeadTag ($headTag)
 
 setFavIcon ($favIcon)
 
 setIconMimeType ($iconMimeType)
 
 setTemplateFile ($file)
 
 setBodyContent ($content)
 
 setApplyNonceHint (bool $applyNonceHint)
 
 enableMoveJsFromHeaderToFooter ()
 
 disableMoveJsFromHeaderToFooter ()
 
 enableCompressJavascript ()
 
 disableCompressJavascript ()
 
 enableCompressCss ()
 
 disableCompressCss ()
 
 enableConcatenateJavascript ()
 
 disableConcatenateJavascript ()
 
 enableConcatenateCss ()
 
 disableConcatenateCss ()
 
string getTitle ()
 
 getLanguage ()
 
 setNonce (?ConsumableNonce $nonce)
 
 setDocType (DocType $docType)
 
 getDocType ()
 
string getHtmlTag ()
 
string getHeadTag ()
 
string getFavIcon ()
 
string getIconMimeType ()
 
string getTemplateFile ()
 
bool getMoveJsFromHeaderToFooter ()
 
bool getCompressJavascript ()
 
bool getCompressCss ()
 
bool getConcatenateJavascript ()
 
bool getConcatenateCss ()
 
string getBodyContent ()
 
array getInlineLanguageLabels ()
 
array getInlineLanguageLabelFiles ()
 
 setMetaTag (string $type, string $name, string $content, array $subProperties=[], $replace=true)
 
 getMetaTag (string $type, string $name)
 
 removeMetaTag (string $type, string $name)
 
 addInlineComment ($comment)
 
 addHeaderData ($data)
 
 addFooterData ($data)
 
 addJsLibrary ($name, $file, $type='', $compress=false, $forceOnTop=false, $allWrap='', $excludeFromConcatenation=false, $splitChar='|', $async=false, $integrity='', $defer=false, $crossorigin='', $nomodule=false, array $tagAttributes=[])
 
 addJsFooterLibrary ($name, $file, $type='', $compress=false, $forceOnTop=false, $allWrap='', $excludeFromConcatenation=false, $splitChar='|', $async=false, $integrity='', $defer=false, $crossorigin='', $nomodule=false, array $tagAttributes=[])
 
 addJsFile ($file, $type='', $compress=true, $forceOnTop=false, $allWrap='', $excludeFromConcatenation=false, $splitChar='|', $async=false, $integrity='', $defer=false, $crossorigin='', $nomodule=false, array $tagAttributes=[])
 
 addJsFooterFile ($file, $type='', $compress=true, $forceOnTop=false, $allWrap='', $excludeFromConcatenation=false, $splitChar='|', $async=false, $integrity='', $defer=false, $crossorigin='', $nomodule=false, array $tagAttributes=[])
 
 addJsInlineCode ($name, $block, $compress=true, $forceOnTop=false, bool $useNonce=false)
 
 addJsFooterInlineCode ($name, $block, $compress=true, $forceOnTop=false, bool $useNonce=false)
 
 addCssFile ($file, $rel='stylesheet', $media='all', $title='', $compress=true, $forceOnTop=false, $allWrap='', $excludeFromConcatenation=false, $splitChar='|', $inline=false, array $tagAttributes=[])
 
 addCssLibrary ($file, $rel='stylesheet', $media='all', $title='', $compress=true, $forceOnTop=false, $allWrap='', $excludeFromConcatenation=false, $splitChar='|', $inline=false, array $tagAttributes=[])
 
 addCssInlineBlock ($name, $block, $compress=false, $forceOnTop=false, bool $useNonce=false)
 
 loadJavaScriptModule (string $specifier)
 
 addInlineLanguageLabel ($key, $value)
 
 addInlineLanguageLabelArray (array $array)
 
 addInlineLanguageLabelFile ($fileRef, $selectionPrefix='', $stripFromSelectionName='')
 
 addInlineSetting ($namespace, $key, $value)
 
 addInlineSettingArray ($namespace, array $array)
 
 addBodyContent ($content)
 
string render ()
 
 renderResponse (int $code=200, string $reasonPhrase='',)
 
string renderPageWithUncachedObjects ($substituteHash)
 
string renderJavaScriptAndCssForProcessingOfUncachedContentObjects ($cachedPageContent, $substituteHash)
 
 getApplicationType ()
 

Public Attributes

 break
 
case __pad0__: $this->javaScriptRenderer->updateState($value)
 
default __pad1__: $this->{$var} = $value
 

Protected Member Functions

array< string, $jsFiles=array();protected array $jsFooterFiles=array();protected array $jsLibs=array();protected array $jsFooterLibs=array();protected array< string, $cssFiles=array();protected array< string, $cssLibs=array();protected string $title;protected string $favIcon;protected string $xmlPrologAndDocType='';protected array $inlineComments=array();protected array $headerData=array();protected array $footerData=array();protected string $titleTag='< title >|</title >';protected string $htmlTag='< html >';protected string $headTag='< head >';protected string $iconMimeType='';protected string $shortcutTag='< link rel="icon" href="%1$s"%2 $s/>';protected array< string, $jsInline=array();protected array $jsFooterInline=array();protected array< string, $cssInline=array();protected string $bodyContent;protected string $templateFile;protected array $inlineLanguageLabels=array();protected array $inlineLanguageLabelFiles=array();protected array $inlineSettings=array();protected string $endingSlash='';protected JavaScriptRenderer $javaScriptRenderer;protected ?ConsumableNonce $nonce=null;protected DocType $docType=DocType::html5;protected bool $applyNonceHint=false;public __construct(protected readonly FrontendInterface $assetsCache, protected readonly MarkerBasedTemplateService $templateService, protected readonly MetaTagManagerRegistry $metaTagRegistry, protected readonly AssetRenderer $assetRenderer, protected readonly ResourceCompressor $resourceCompressor, protected readonly RelativeCssPathFixer $relativeCssPathFixer, protected readonly LanguageServiceFactory $languageServiceFactory, protected readonly ResponseFactoryInterface $responseFactory, protected readonly StreamFactoryInterface $streamFactory,) { $this->reset();$this->setMetaTag( 'name', 'generator', 'TYPO3 CMS');} public function updateState(array $state):void { foreach( $state as $var=> $value) { switch( $var) { case 'assetsCache':case 'assetRenderer':case 'templateService':case 'resourceCompressor':case 'relativeCssPathFixer':case 'languageServiceFactory':case 'responseFactory':case 'streamFactory':break;case 'nonce':$this->setNonce(new ConsumableNonce( $value));break;case 'metaTagRegistry':$this->metaTagRegistry-> updateState ($value)
 
 reset ()
 
 setDefaultHtmlTag ()
 
array renderMetaTagsFromAPI ()
 
 prepareRendering ()
 
array string[] renderJavaScriptAndCss ()
 
array getPreparedMarkerArray ($jsLibs, $jsFiles, $jsFooterFiles, $cssLibs, $cssFiles, $jsInline, $cssInline, $jsFooterInline, $jsFooterLibs, $metaTags)
 
array getPreparedMarkerArrayForPageWithUncachedObjects ($substituteHash)
 
 getTemplate ()
 
string renderMainJavaScriptLibraries ()
 
 parseLanguageLabelsForJavaScript ()
 
 loadJavaScriptLanguageStrings ()
 
 addAjaxUrlsToInlineSettings (bool $publicRoutesOnly=false)
 
 addGlobalCSSUrlsToInlineSettings ()
 
string renderCssLibraries ()
 
string renderCssFiles ()
 
string renderCssInline ()
 
array string[] renderAdditionalJavaScriptLibraries ()
 
array string[] renderJavaScriptFiles ()
 
array string[] renderInlineJavaScript ()
 
 includeLanguageFileForInline ($fileRef, $selectionPrefix='', $stripFromSelectionName='')
 
array readLLfile (string $fileRef)
 
 doConcatenate ()
 
 doConcatenateJavaScript ()
 
 doConcatenateCss ()
 
 doCompress ()
 
 doCompressCss ()
 
 doCompressJavaScript ()
 
string processJsFile ($filename)
 
string getStreamlinedFileName ($file, $prepareForOutput=true)
 
 getAbsoluteWebPath (string $file)
 
 executePreRenderHook ()
 
 executeRenderPostTransformHook ()
 
 executePostRenderHook (&$jsLibs, &$jsFiles, &$jsFooterFiles, &$cssLibs, &$cssFiles, &$jsInline, &$cssInline, &$jsFooterInline, &$jsFooterLibs)
 
 createInlineCssTagFromFile (string $file, array $properties)
 
 wrapInlineStyle (string $content, array $attributes=[])
 
 wrapInlineScript (string $content, array $attributes=[])
 

Protected Attributes

const PART_COMPLETE = 0
 
const PART_HEADER = 1
 
const PART_FOOTER = 2
 
bool $compressJavascript = false
 
bool $compressCss = false
 
bool $concatenateJavascript = false
 
bool $concatenateCss = false
 
bool $moveJsFromHeaderToFooter = false
 
Locale $locale
 

Private Member Functions

 createCssTag (array $properties, string $file)
 

Detailed Description

TYPO3 pageRender class This class render the HTML of a webpage, usable for BE and FE

Todo:
‪mark this class final in TYPO3 v13.0

Definition at line 45 of file PageRenderer.php.

Member Function Documentation

◆ addAjaxUrlsToInlineSettings()

TYPO3\CMS\Core\Page\PageRenderer::addAjaxUrlsToInlineSettings ( bool  $publicRoutesOnly = false)
protected

Make URLs to all backend ajax handlers available as inline setting.

Definition at line 1550 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderMainJavaScriptLibraries().

◆ addBodyContent()

TYPO3\CMS\Core\Page\PageRenderer::addBodyContent (   $content)

Adds content to body content

Parameters
string$content

Definition at line 1194 of file PageRenderer.php.

◆ addCssFile()

TYPO3\CMS\Core\Page\PageRenderer::addCssFile (   $file,
  $rel = 'stylesheet',
  $media = 'all',
  $title = '',
  $compress = true,
  $forceOnTop = false,
  $allWrap = '',
  $excludeFromConcatenation = false,
  $splitChar = '|',
  $inline = false,
array  $tagAttributes = [] 
)

Adds CSS file

Parameters
string$file
string$rel
string$media
string$title
bool$compress
bool$forceOnTop
string$allWrap
bool$excludeFromConcatenation
string$splitChar‪The char used to split the allWrap value, default is "|"
bool$inline
array<string,string>‪$tagAttributes Key => value list of tag attributes

Definition at line 1011 of file PageRenderer.php.

Referenced by TYPO3\CMS\Backend\Form\FormResultCompiler\addCssFiles(), and TYPO3\CMS\Backend\Template\PageRendererBackendSetupTrait\loadStylesheets().

◆ addCssInlineBlock()

TYPO3\CMS\Core\Page\PageRenderer::addCssInlineBlock (   $name,
  $block,
  $compress = false,
  $forceOnTop = false,
bool  $useNonce = false 
)

Adds CSS inline code

Parameters
string$name
string$block
bool$compress
bool$forceOnTop

Definition at line 1072 of file PageRenderer.php.

◆ addCssLibrary()

TYPO3\CMS\Core\Page\PageRenderer::addCssLibrary (   $file,
  $rel = 'stylesheet',
  $media = 'all',
  $title = '',
  $compress = true,
  $forceOnTop = false,
  $allWrap = '',
  $excludeFromConcatenation = false,
  $splitChar = '|',
  $inline = false,
array  $tagAttributes = [] 
)

Adds CSS file

Parameters
string$file
string$rel
string$media
string$title
bool$compress
bool$forceOnTop
string$allWrap
bool$excludeFromConcatenation
string$splitChar‪The char used to split the allWrap value, default is "|"
bool$inline
array<string,string>‪$tagAttributes Key => value list of tag attributes

Definition at line 1045 of file PageRenderer.php.

◆ addFooterData()

TYPO3\CMS\Core\Page\PageRenderer::addFooterData (   $data)

Adds footer data

Parameters
string$data‪Free header data for HTML header

Definition at line 776 of file PageRenderer.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\renderFluidTemplateAssetsIntoPageRenderer().

◆ addGlobalCSSUrlsToInlineSettings()

TYPO3\CMS\Core\Page\PageRenderer::addGlobalCSSUrlsToInlineSettings ( )
protected

◆ addHeaderData()

TYPO3\CMS\Core\Page\PageRenderer::addHeaderData (   $data)

Adds header data

Parameters
string$data‪Free header data for HTML header

Definition at line 764 of file PageRenderer.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject\renderFluidTemplateAssetsIntoPageRenderer().

◆ addInlineComment()

TYPO3\CMS\Core\Page\PageRenderer::addInlineComment (   $comment)

Adds inline HTML comment

Parameters
string$comment

Definition at line 752 of file PageRenderer.php.

◆ addInlineLanguageLabel()

TYPO3\CMS\Core\Page\PageRenderer::addInlineLanguageLabel (   $key,
  $value 
)

Adds Javascript Inline Label. This will occur in TYPO3.lang - object The label can be used in scripts with TYPO3.lang.<key>

Parameters
string$key
string$value

Definition at line 1104 of file PageRenderer.php.

◆ addInlineLanguageLabelArray()

TYPO3\CMS\Core\Page\PageRenderer::addInlineLanguageLabelArray ( array  $array)

Adds Javascript Inline Label Array. This will occur in TYPO3.lang - object The label can be used in scripts with TYPO3.lang.<key> Array will be merged with existing array.

Definition at line 1114 of file PageRenderer.php.

Referenced by TYPO3\CMS\Backend\Form\FormResultCompiler\JSbottom().

◆ addInlineLanguageLabelFile()

TYPO3\CMS\Core\Page\PageRenderer::addInlineLanguageLabelFile (   $fileRef,
  $selectionPrefix = '',
  $stripFromSelectionName = '' 
)

Gets labels to be used in JavaScript fetched from a locallang file.

Parameters
string$fileRef‪Input is a file-reference (see GeneralUtility::getFileAbsFileName). That file is expected to be a 'locallang.xlf' file containing a valid XML TYPO3 language structure.
string$selectionPrefix‪Prefix to select the correct labels (default: '')
string$stripFromSelectionName‪String to be removed from the label names in the output. (default: '')

Definition at line 1126 of file PageRenderer.php.

Referenced by TYPO3\CMS\Backend\Form\FormResultCompiler\JSbottom().

◆ addInlineSetting()

TYPO3\CMS\Core\Page\PageRenderer::addInlineSetting (   $namespace,
  $key,
  $value 
)

Adds Javascript Inline Setting. This will occur in TYPO3.settings - object The label can be used in scripts with TYPO3.setting.<key>

Parameters
string$namespace
string$key
mixed$value

Definition at line 1146 of file PageRenderer.php.

Referenced by TYPO3\CMS\Backend\Form\FormResultCompiler\JSbottom(), and TYPO3\CMS\Backend\Form\FormResultCompiler\printNeededJSFunctions().

◆ addInlineSettingArray()

TYPO3\CMS\Core\Page\PageRenderer::addInlineSettingArray (   $namespace,
array  $array 
)

Adds Javascript Inline Setting. This will occur in TYPO3.settings - object The label can be used in scripts with TYPO3.setting.<key> Array will be merged with existing array.

Parameters
string$namespace

Definition at line 1171 of file PageRenderer.php.

Referenced by TYPO3\CMS\Backend\Form\FormResultCompiler\JSbottom().

◆ addJsFile()

TYPO3\CMS\Core\Page\PageRenderer::addJsFile (   $file,
  $type = '',
  $compress = true,
  $forceOnTop = false,
  $allWrap = '',
  $excludeFromConcatenation = false,
  $splitChar = '|',
  $async = false,
  $integrity = '',
  $defer = false,
  $crossorigin = '',
  $nomodule = false,
array  $tagAttributes = [] 
)

Adds JS file

Parameters
string$file‪File name
string | null$type‪Content Type
bool$compress
bool$forceOnTop
string$allWrap
bool$excludeFromConcatenation
string$splitChar‪The char used to split the allWrap value, default is "|"
bool$async‪Flag if property 'async="async"' should be added to JavaScript tags
string$integrity‪Subresource Integrity (SRI)
bool$defer‪Flag if property 'defer="defer"' should be added to JavaScript tags
string$crossorigin‪CORS settings attribute
bool$nomodule‪Flag if property 'nomodule="nomodule"' should be added to JavaScript tags
array<string,string>‪$tagAttributes Key => value list of tag attributes

Definition at line 887 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\PART_HEADER.

◆ addJsFooterFile()

TYPO3\CMS\Core\Page\PageRenderer::addJsFooterFile (   $file,
  $type = '',
  $compress = true,
  $forceOnTop = false,
  $allWrap = '',
  $excludeFromConcatenation = false,
  $splitChar = '|',
  $async = false,
  $integrity = '',
  $defer = false,
  $crossorigin = '',
  $nomodule = false,
array  $tagAttributes = [] 
)

Adds JS file to footer

Parameters
string$file‪File name
string | null$type‪Content Type
bool$compress
bool$forceOnTop
string$allWrap
bool$excludeFromConcatenation
string$splitChar‪The char used to split the allWrap value, default is "|"
bool$async‪Flag if property 'async="async"' should be added to JavaScript tags
string$integrity‪Subresource Integrity (SRI)
bool$defer‪Flag if property 'defer="defer"' should be added to JavaScript tags
string$crossorigin‪CORS settings attribute
bool$nomodule‪Flag if property 'nomodule="nomodule"' should be added to JavaScript tags
array<string,string>‪$tagAttributes Key => value list of tag attributes

Definition at line 929 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\PART_FOOTER.

◆ addJsFooterInlineCode()

TYPO3\CMS\Core\Page\PageRenderer::addJsFooterInlineCode (   $name,
  $block,
  $compress = true,
  $forceOnTop = false,
bool  $useNonce = false 
)

Adds JS inline code to footer

Parameters
string$name
string$block
bool$compress
bool$forceOnTop

Definition at line 983 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\PART_FOOTER.

◆ addJsFooterLibrary()

TYPO3\CMS\Core\Page\PageRenderer::addJsFooterLibrary (   $name,
  $file,
  $type = '',
  $compress = false,
  $forceOnTop = false,
  $allWrap = '',
  $excludeFromConcatenation = false,
  $splitChar = '|',
  $async = false,
  $integrity = '',
  $defer = false,
  $crossorigin = '',
  $nomodule = false,
array  $tagAttributes = [] 
)

Adds JS Library to Footer. JS Library block is rendered on top of the Footer JS files.

Parameters
string$name‪Arbitrary identifier
string$file‪File name
string | null$type‪Content Type
bool$compress‪Flag if library should be compressed
bool$forceOnTop‪Flag if added library should be inserted at begin of this block
string$allWrap
bool$excludeFromConcatenation
string$splitChar‪The char used to split the allWrap value, default is "|"
bool$async‪Flag if property 'async="async"' should be added to JavaScript tags
string$integrity‪Subresource Integrity (SRI)
bool$defer‪Flag if property 'defer="defer"' should be added to JavaScript tags
string$crossorigin‪CORS settings attribute
bool$nomodule‪Flag if property 'nomodule="nomodule"' should be added to JavaScript tags
array<string,string>‪$tagAttributes Key => value list of tag attributes

Definition at line 844 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\PART_FOOTER.

◆ addJsInlineCode()

TYPO3\CMS\Core\Page\PageRenderer::addJsInlineCode (   $name,
  $block,
  $compress = true,
  $forceOnTop = false,
bool  $useNonce = false 
)

Adds JS inline code

Parameters
string$name
string$block
bool$compress
bool$forceOnTop

Definition at line 962 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\PART_HEADER.

◆ addJsLibrary()

TYPO3\CMS\Core\Page\PageRenderer::addJsLibrary (   $name,
  $file,
  $type = '',
  $compress = false,
  $forceOnTop = false,
  $allWrap = '',
  $excludeFromConcatenation = false,
  $splitChar = '|',
  $async = false,
  $integrity = '',
  $defer = false,
  $crossorigin = '',
  $nomodule = false,
array  $tagAttributes = [] 
)

Adds JS Library. JS Library block is rendered on top of the JS files.

Parameters
string$name‪Arbitrary identifier
string$file‪File name
string | null$type‪Content Type
bool$compress‪Flag if library should be compressed
bool$forceOnTop‪Flag if added library should be inserted at begin of this block
string$allWrap
bool$excludeFromConcatenation
string$splitChar‪The char used to split the allWrap value, default is "|"
bool$async‪Flag if property 'async="async"' should be added to JavaScript tags
string$integrity‪Subresource Integrity (SRI)
bool$defer‪Flag if property 'defer="defer"' should be added to JavaScript tags
string$crossorigin‪CORS settings attribute
bool$nomodule‪Flag if property 'nomodule="nomodule"' should be added to JavaScript tags
array<string,string>‪$tagAttributes Key => value list of tag attributes

Definition at line 801 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\PART_HEADER.

◆ createCssTag()

TYPO3\CMS\Core\Page\PageRenderer::createCssTag ( array  $properties,
string  $file 
)
private

◆ createInlineCssTagFromFile()

TYPO3\CMS\Core\Page\PageRenderer::createInlineCssTagFromFile ( string  $file,
array  $properties 
)
protected

Creates a CSS inline tag

Parameters
string$file‪the filename to process

Definition at line 2208 of file PageRenderer.php.

References TYPO3\CMS\Core\Utility\PathUtility\dirname().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\createCssTag().

◆ disableCompressCss()

TYPO3\CMS\Core\Page\PageRenderer::disableCompressCss ( )

Disables compression of css

Definition at line 472 of file PageRenderer.php.

◆ disableCompressJavascript()

TYPO3\CMS\Core\Page\PageRenderer::disableCompressJavascript ( )

Disables compression of javascript

Definition at line 456 of file PageRenderer.php.

◆ disableConcatenateCss()

TYPO3\CMS\Core\Page\PageRenderer::disableConcatenateCss ( )

Disables concatenation of css files

Definition at line 504 of file PageRenderer.php.

◆ disableConcatenateJavascript()

TYPO3\CMS\Core\Page\PageRenderer::disableConcatenateJavascript ( )

Disables concatenation of js files

Definition at line 488 of file PageRenderer.php.

◆ disableMoveJsFromHeaderToFooter()

TYPO3\CMS\Core\Page\PageRenderer::disableMoveJsFromHeaderToFooter ( )

Disables MoveJsFromHeaderToFooter

Definition at line 440 of file PageRenderer.php.

◆ doCompress()

TYPO3\CMS\Core\Page\PageRenderer::doCompress ( )
protected

◆ doCompressCss()

TYPO3\CMS\Core\Page\PageRenderer::doCompressCss ( )
protected

Compresses CSS according to configuration. Only possible in TYPO3 Frontend.

Definition at line 1972 of file PageRenderer.php.

References $GLOBALS, and TYPO3\CMS\Core\Page\PageRenderer\getApplicationType().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\doCompress().

◆ doCompressJavaScript()

TYPO3\CMS\Core\Page\PageRenderer::doCompressJavaScript ( )
protected

Compresses JavaScript according to configuration. Only possible in TYPO3 Frontend.

Definition at line 1999 of file PageRenderer.php.

References $GLOBALS, and TYPO3\CMS\Core\Page\PageRenderer\getApplicationType().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\doCompress().

◆ doConcatenate()

TYPO3\CMS\Core\Page\PageRenderer::doConcatenate ( )
protected

◆ doConcatenateCss()

TYPO3\CMS\Core\Page\PageRenderer::doConcatenateCss ( )
protected

Concatenate CSS files according to configuration. Only possible in TYPO3 Frontend.

Definition at line 1937 of file PageRenderer.php.

References $GLOBALS, and TYPO3\CMS\Core\Page\PageRenderer\getApplicationType().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\doConcatenate().

◆ doConcatenateJavaScript()

TYPO3\CMS\Core\Page\PageRenderer::doConcatenateJavaScript ( )
protected

Concatenate JavaScript files according to the configuration. Only possible in TYPO3 Frontend.

Definition at line 1909 of file PageRenderer.php.

References $GLOBALS, and TYPO3\CMS\Core\Page\PageRenderer\getApplicationType().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\doConcatenate().

◆ enableCompressCss()

TYPO3\CMS\Core\Page\PageRenderer::enableCompressCss ( )

Enables compression of css

Definition at line 464 of file PageRenderer.php.

◆ enableCompressJavascript()

TYPO3\CMS\Core\Page\PageRenderer::enableCompressJavascript ( )

Enables compression of javascript

Definition at line 448 of file PageRenderer.php.

◆ enableConcatenateCss()

TYPO3\CMS\Core\Page\PageRenderer::enableConcatenateCss ( )

Enables concatenation of css files

Definition at line 496 of file PageRenderer.php.

◆ enableConcatenateJavascript()

TYPO3\CMS\Core\Page\PageRenderer::enableConcatenateJavascript ( )

Enables concatenation of js files

Definition at line 480 of file PageRenderer.php.

◆ enableMoveJsFromHeaderToFooter()

TYPO3\CMS\Core\Page\PageRenderer::enableMoveJsFromHeaderToFooter ( )

Enables MoveJsFromHeaderToFooter

Definition at line 432 of file PageRenderer.php.

◆ executePostRenderHook()

TYPO3\CMS\Core\Page\PageRenderer::executePostRenderHook ( $jsLibs,
$jsFiles,
$jsFooterFiles,
$cssLibs,
$cssFiles,
$jsInline,
$cssInline,
$jsFooterInline,
$jsFooterLibs 
)
protected

Execute postRenderHook for possible manipulation

Parameters
string$jsLibs
string$jsFiles
string$jsFooterFiles
string$cssLibs
string$cssFiles
string$jsInline
string$cssInline
string$jsFooterInline
string$jsFooterLibs

Definition at line 2169 of file PageRenderer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ executePreRenderHook()

TYPO3\CMS\Core\Page\PageRenderer::executePreRenderHook ( )
protected

Execute PreRenderHook for possible manipulation

Definition at line 2105 of file PageRenderer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ executeRenderPostTransformHook()

TYPO3\CMS\Core\Page\PageRenderer::executeRenderPostTransformHook ( )
protected

PostTransform for possible manipulation of concatenated and compressed files

Definition at line 2132 of file PageRenderer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ getAbsoluteWebPath()

TYPO3\CMS\Core\Page\PageRenderer::getAbsoluteWebPath ( string  $file)
protected

Gets absolute web path of filename for backend disposal. Resolving the absolute path in the frontend with conflict with applying config.absRefPrefix in frontend rendering process.

See also
‪\TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::setAbsRefPrefix()

Definition at line 2089 of file PageRenderer.php.

References TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), and TYPO3\CMS\Core\Page\PageRenderer\getApplicationType().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\getStreamlinedFileName(), and TYPO3\CMS\Core\Page\PageRenderer\processJsFile().

◆ getApplicationType()

◆ getBodyContent()

string TYPO3\CMS\Core\Page\PageRenderer::getBodyContent ( )

Gets content for body

Returns
‪string

Definition at line 655 of file PageRenderer.php.

◆ getCompressCss()

bool TYPO3\CMS\Core\Page\PageRenderer::getCompressCss ( )

Gets compress of css

Returns
‪bool

Definition at line 625 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\$compressCss.

◆ getCompressJavascript()

bool TYPO3\CMS\Core\Page\PageRenderer::getCompressJavascript ( )

Gets compress of javascript

Returns
‪bool

Definition at line 615 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\$compressJavascript.

◆ getConcatenateCss()

bool TYPO3\CMS\Core\Page\PageRenderer::getConcatenateCss ( )

Gets concatenate of css files

Returns
‪bool

Definition at line 645 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\$concatenateCss.

◆ getConcatenateJavascript()

bool TYPO3\CMS\Core\Page\PageRenderer::getConcatenateJavascript ( )

Gets concatenate of js files

Returns
‪bool

Definition at line 635 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\$concatenateJavascript.

◆ getDocType()

TYPO3\CMS\Core\Page\PageRenderer::getDocType ( )

Definition at line 545 of file PageRenderer.php.

◆ getFavIcon()

string TYPO3\CMS\Core\Page\PageRenderer::getFavIcon ( )

Gets favicon

Returns
‪string $favIcon

Definition at line 575 of file PageRenderer.php.

◆ getHeadTag()

string TYPO3\CMS\Core\Page\PageRenderer::getHeadTag ( )

Gets head tag

Returns
‪string $tag Head tag

Definition at line 565 of file PageRenderer.php.

◆ getHtmlTag()

string TYPO3\CMS\Core\Page\PageRenderer::getHtmlTag ( )

Gets html tag

Returns
‪string $htmlTag Html tag

Definition at line 555 of file PageRenderer.php.

◆ getIconMimeType()

string TYPO3\CMS\Core\Page\PageRenderer::getIconMimeType ( )

Gets icon mime type

Returns
‪string $iconMimeType

Definition at line 585 of file PageRenderer.php.

◆ getInlineLanguageLabelFiles()

array TYPO3\CMS\Core\Page\PageRenderer::getInlineLanguageLabelFiles ( )

Gets the inline language files

Returns
‪array

Definition at line 675 of file PageRenderer.php.

◆ getInlineLanguageLabels()

array TYPO3\CMS\Core\Page\PageRenderer::getInlineLanguageLabels ( )

Gets the inline language labels.

Returns
‪array The inline language labels

Definition at line 665 of file PageRenderer.php.

◆ getJavaScriptRenderer()

TYPO3\CMS\Core\Page\PageRenderer::getJavaScriptRenderer ( )

◆ getLanguage()

TYPO3\CMS\Core\Page\PageRenderer::getLanguage ( )

Gets the language

Definition at line 528 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\$locale.

◆ getMetaTag()

TYPO3\CMS\Core\Page\PageRenderer::getMetaTag ( string  $type,
string  $name 
)

Returns the requested meta tag

Definition at line 715 of file PageRenderer.php.

◆ getMoveJsFromHeaderToFooter()

bool TYPO3\CMS\Core\Page\PageRenderer::getMoveJsFromHeaderToFooter ( )

Gets MoveJsFromHeaderToFooter

Returns
‪bool

Definition at line 605 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\$moveJsFromHeaderToFooter.

◆ getPreparedMarkerArray()

array TYPO3\CMS\Core\Page\PageRenderer::getPreparedMarkerArray (   $jsLibs,
  $jsFiles,
  $jsFooterFiles,
  $cssLibs,
  $cssFiles,
  $jsInline,
  $cssInline,
  $jsFooterInline,
  $jsFooterLibs,
  $metaTags 
)
protected

Fills the marker array with the given strings and trims each value

Parameters
string$jsLibs
string$jsFiles
string$jsFooterFiles
string$cssLibs
string$cssFiles
string$jsInline
string$cssInline
string$jsFooterInline
string$jsFooterLibs
string$metaTags
Returns
‪array Marker array

Definition at line 1380 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\render().

◆ getPreparedMarkerArrayForPageWithUncachedObjects()

array TYPO3\CMS\Core\Page\PageRenderer::getPreparedMarkerArrayForPageWithUncachedObjects (   $substituteHash)
protected

Fills the marker array with the given strings and trims each value

Parameters
string$substituteHash‪The hash that is used for the placeholder markers
Returns
‪array Marker array

Definition at line 1415 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderPageWithUncachedObjects().

◆ getState()

TYPO3\CMS\Core\Page\PageRenderer::getState ( )

Definition at line 245 of file PageRenderer.php.

◆ getStreamlinedFileName()

string TYPO3\CMS\Core\Page\PageRenderer::getStreamlinedFileName (   $file,
  $prepareForOutput = true 
)
protected

This function acts as a wrapper to allow relative and paths starting with EXT: to be dealt with in this very case to always return the absolute web path to be included directly before output.

This is mainly added so the EXT: syntax can be resolved for PageRenderer in one central place, and hopefully removed in the future by one standard API call.

Parameters
string$file‪the filename to process
bool$prepareForOutput‪whether the file should be prepared as version numbered file and prefixed as absolute webpath
Returns
‪string

Definition at line 2065 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\getAbsoluteWebPath(), TYPO3\CMS\Core\Core\Environment\getPublicPath(), TYPO3\CMS\Core\Utility\PathUtility\getPublicResourceWebPath(), TYPO3\CMS\Core\Utility\PathUtility\getRelativePathTo(), and TYPO3\CMS\Core\Utility\PathUtility\isExtensionPath().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\addGlobalCSSUrlsToInlineSettings(), TYPO3\CMS\Core\Page\PageRenderer\createCssTag(), TYPO3\CMS\Core\Page\PageRenderer\processJsFile(), TYPO3\CMS\Core\Page\PageRenderer\renderAdditionalJavaScriptLibraries(), TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptFiles(), and TYPO3\CMS\Core\Page\PageRenderer\reset().

◆ getTemplate()

TYPO3\CMS\Core\Page\PageRenderer::getTemplate ( )
protected

Reads the template file and returns the requested part as string

Definition at line 1447 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\render(), and TYPO3\CMS\Core\Page\PageRenderer\renderPageWithUncachedObjects().

◆ getTemplateFile()

string TYPO3\CMS\Core\Page\PageRenderer::getTemplateFile ( )

Gets template file

Returns
‪string

Definition at line 595 of file PageRenderer.php.

◆ getTitle()

string TYPO3\CMS\Core\Page\PageRenderer::getTitle ( )

Gets the title

Returns
‪string $title Title of webpage

Definition at line 520 of file PageRenderer.php.

◆ includeLanguageFileForInline()

TYPO3\CMS\Core\Page\PageRenderer::includeLanguageFileForInline (   $fileRef,
  $selectionPrefix = '',
  $stripFromSelectionName = '' 
)
protected

Include language file for inline usage

Parameters
string$fileRef
string$selectionPrefix
string$stripFromSelectionName

Definition at line 1862 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\readLLfile().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\loadJavaScriptLanguageStrings().

◆ loadJavaScriptLanguageStrings()

TYPO3\CMS\Core\Page\PageRenderer::loadJavaScriptLanguageStrings ( )
protected

Load the language strings into JavaScript

Definition at line 1539 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\includeLanguageFileForInline().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderMainJavaScriptLibraries().

◆ loadJavaScriptModule()

TYPO3\CMS\Core\Page\PageRenderer::loadJavaScriptModule ( string  $specifier)

Includes an ES6/ES11 compatible JavaScript module by resolving the specifier to an import-mapped filename.

Parameters
string$specifier‪Bare module identifier like @my/package/Filename.js

Definition at line 1090 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\JavaScriptModuleInstruction\create().

Referenced by TYPO3\CMS\Backend\Form\FormResultCompiler\JSbottom().

◆ parseLanguageLabelsForJavaScript()

TYPO3\CMS\Core\Page\PageRenderer::parseLanguageLabelsForJavaScript ( )
protected

Converts the language labels for usage in JavaScript

Definition at line 1517 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderMainJavaScriptLibraries().

◆ prepareRendering()

TYPO3\CMS\Core\Page\PageRenderer::prepareRendering ( )
protected

Remove ending slashes from static header block if the page is being rendered as html (not xhtml) and define property $this->endingSlash for further use

Definition at line 1307 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\render(), TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCssForProcessingOfUncachedContentObjects(), and TYPO3\CMS\Core\Page\PageRenderer\renderPageWithUncachedObjects().

◆ processJsFile()

string TYPO3\CMS\Core\Page\PageRenderer::processJsFile (   $filename)
protected

Processes a Javascript file dependent on the current context

Adds the version number for Frontend, compresses the file for Backend

Parameters
string$filename‪Filename
Returns
‪string New filename

Definition at line 2040 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\getAbsoluteWebPath(), TYPO3\CMS\Core\Page\PageRenderer\getApplicationType(), and TYPO3\CMS\Core\Page\PageRenderer\getStreamlinedFileName().

◆ readLLfile()

array TYPO3\CMS\Core\Page\PageRenderer::readLLfile ( string  $fileRef)
protected

Reads a locallang file.

Parameters
string$fileRef‪Reference to a relative filename to include.
Returns
‪array Returns the $LOCAL_LANG array found in the file. If no array found, returns empty array.

Definition at line 1885 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\includeLanguageFileForInline().

◆ removeMetaTag()

TYPO3\CMS\Core\Page\PageRenderer::removeMetaTag ( string  $type,
string  $name 
)

Unset the requested meta tag

Definition at line 737 of file PageRenderer.php.

◆ render()

◆ renderAdditionalJavaScriptLibraries()

array string [] TYPO3\CMS\Core\Page\PageRenderer::renderAdditionalJavaScriptLibraries ( )
protected

Render JavaScript libraries

Returns
‪array|string[] jsLibs and jsFooterLibs strings

Definition at line 1690 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\getStreamlinedFileName().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ renderCssFiles()

string TYPO3\CMS\Core\Page\PageRenderer::renderCssFiles ( )
protected

Render CSS files

Returns
‪string

Definition at line 1604 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\createCssTag().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ renderCssInline()

string TYPO3\CMS\Core\Page\PageRenderer::renderCssInline ( )
protected

Render inline CSS

Returns
‪string

Definition at line 1662 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\wrapInlineStyle().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ renderCssLibraries()

string TYPO3\CMS\Core\Page\PageRenderer::renderCssLibraries ( )
protected

Render CSS library files

Returns
‪string

Definition at line 1583 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\createCssTag().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ renderInlineJavaScript()

array string [] TYPO3\CMS\Core\Page\PageRenderer::renderInlineJavaScript ( )
protected

Render inline JavaScript (must not apply nonce="..." if defined).

Returns
‪array|string[] jsInline and jsFooterInline string

Definition at line 1814 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\PART_HEADER, and TYPO3\CMS\Core\Page\PageRenderer\wrapInlineScript().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ renderJavaScriptAndCss()

◆ renderJavaScriptAndCssForProcessingOfUncachedContentObjects()

string TYPO3\CMS\Core\Page\PageRenderer::renderJavaScriptAndCssForProcessingOfUncachedContentObjects (   $cachedPageContent,
  $substituteHash 
)

Renders the JavaScript and CSS files that have been added during processing of uncached content objects (USER_INT, COA_INT)

Parameters
string$cachedPageContent
string$substituteHash‪The hash that is used for the variables
Returns
‪string

Definition at line 1275 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\prepareRendering(), TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss(), TYPO3\CMS\Core\Page\PageRenderer\renderMetaTagsFromAPI(), and TYPO3\CMS\Core\Page\PageRenderer\reset().

◆ renderJavaScriptFiles()

array string [] TYPO3\CMS\Core\Page\PageRenderer::renderJavaScriptFiles ( )
protected

Render JavaScript files

Returns
‪array|string[] jsFiles and jsFooterFiles strings

Definition at line 1752 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\getStreamlinedFileName().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCss().

◆ renderMainJavaScriptLibraries()

◆ renderMetaTagsFromAPI()

array TYPO3\CMS\Core\Page\PageRenderer::renderMetaTagsFromAPI ( )
protected

Renders metaTags based on tags added via the API

Returns
‪array

Definition at line 1237 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\render(), and TYPO3\CMS\Core\Page\PageRenderer\renderJavaScriptAndCssForProcessingOfUncachedContentObjects().

◆ renderPageWithUncachedObjects()

string TYPO3\CMS\Core\Page\PageRenderer::renderPageWithUncachedObjects (   $substituteHash)

Render the page but not the JavaScript and CSS Files

Parameters
string$substituteHash‪The hash that is used for the placeholder markers
Returns
‪string Content of rendered page

Definition at line 1258 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\getPreparedMarkerArrayForPageWithUncachedObjects(), TYPO3\CMS\Core\Page\PageRenderer\getTemplate(), and TYPO3\CMS\Core\Page\PageRenderer\prepareRendering().

◆ renderResponse()

TYPO3\CMS\Core\Page\PageRenderer::renderResponse ( int  $code = 200,
string  $reasonPhrase = '' 
)

Definition at line 1222 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\render().

◆ reset()

◆ setApplyNonceHint()

TYPO3\CMS\Core\Page\PageRenderer::setApplyNonceHint ( bool  $applyNonceHint)

◆ setBodyContent()

TYPO3\CMS\Core\Page\PageRenderer::setBodyContent (   $content)

Sets Content for Body

Parameters
string$content

Definition at line 413 of file PageRenderer.php.

◆ setDefaultHtmlTag()

TYPO3\CMS\Core\Page\PageRenderer::setDefaultHtmlTag ( )
protected

Internal method to set a basic <html> tag when in HTML5 with the proper language/locale and "dir" attributes.

Definition at line 345 of file PageRenderer.php.

References TYPO3\CMS\Core\Page\PageRenderer\setHtmlTag().

Referenced by TYPO3\CMS\Core\Page\PageRenderer\setDocType(), and TYPO3\CMS\Core\Page\PageRenderer\setLanguage().

◆ setDocType()

TYPO3\CMS\Core\Page\PageRenderer::setDocType ( DocType  $docType)

◆ setFavIcon()

TYPO3\CMS\Core\Page\PageRenderer::setFavIcon (   $favIcon)

Sets favicon

Parameters
string$favIcon

Definition at line 383 of file PageRenderer.php.

Referenced by TYPO3\CMS\Backend\Template\PageRendererBackendSetupTrait\setUpBasicPageRendererForBackend().

◆ setHeadTag()

TYPO3\CMS\Core\Page\PageRenderer::setHeadTag (   $headTag)

Sets HTML head tag

Parameters
string$headTag‪HTML head tag

Definition at line 373 of file PageRenderer.php.

◆ setHtmlTag()

TYPO3\CMS\Core\Page\PageRenderer::setHtmlTag (   $htmlTag)

Sets html tag

Parameters
string$htmlTagHtml tag

Definition at line 363 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\setDefaultHtmlTag().

◆ setIconMimeType()

TYPO3\CMS\Core\Page\PageRenderer::setIconMimeType (   $iconMimeType)

Sets icon mime type

Parameters
string$iconMimeType

Definition at line 393 of file PageRenderer.php.

◆ setLanguage()

TYPO3\CMS\Core\Page\PageRenderer::setLanguage ( Locale  $locale)

◆ setMetaTag()

TYPO3\CMS\Core\Page\PageRenderer::setMetaTag ( string  $type,
string  $name,
string  $content,
array  $subProperties = [],
  $replace = true 
)

Sets a given meta tag

Parameters
string$type‪The type of the meta tag. Allowed values are property, name or http-equiv
string$name‪The name of the property to add
string$content‪The content of the meta tag
array$subProperties‪Subproperties of the meta tag (like e.g. og:image:width)
bool$replace‪Replace earlier set meta tag
Exceptions

Definition at line 697 of file PageRenderer.php.

Referenced by TYPO3\CMS\Backend\Template\PageRendererBackendSetupTrait\setUpBasicPageRendererForBackend().

◆ setNonce()

TYPO3\CMS\Core\Page\PageRenderer::setNonce ( ?ConsumableNonce  $nonce)

◆ setTemplateFile()

TYPO3\CMS\Core\Page\PageRenderer::setTemplateFile (   $file)

Sets template file

Parameters
string$file

Definition at line 403 of file PageRenderer.php.

◆ setTitle()

TYPO3\CMS\Core\Page\PageRenderer::setTitle (   $title)

Sets the title

Parameters
string$title‪title of webpage

Definition at line 317 of file PageRenderer.php.

◆ setXmlPrologAndDocType()

TYPO3\CMS\Core\Page\PageRenderer::setXmlPrologAndDocType (   $xmlPrologAndDocType)

Sets xml prolog and docType

Parameters
string$xmlPrologAndDocType‪Complete tags for xml prolog and docType

Definition at line 327 of file PageRenderer.php.

◆ updateState()

array<string, $jsFiles = array( ); protected array $jsFooterFiles = array( ); protected array $jsLibs = array( ); protected array $jsFooterLibs = array( ); protected array<string, $cssFiles = array( ); protected array<string, $cssLibs = array( ); protected string $title; protected string $favIcon; protected string $xmlPrologAndDocType = ''; protected array $inlineComments = array( ); protected array $headerData = array( ); protected array $footerData = array( ); protected string $titleTag = '<title>|</title>'; protected string $htmlTag = '<html>'; protected string $headTag = '<head>'; protected string $iconMimeType = ''; protected string $shortcutTag = '<link rel="icon" href="%1$s"%2$s />'; protected array<string, $jsInline = array( ); protected array $jsFooterInline = array( ); protected array<string, $cssInline = array( ); protected string $bodyContent; protected string $templateFile; protected array $inlineLanguageLabels = array( ); protected array $inlineLanguageLabelFiles = array( ); protected array $inlineSettings = array( ); protected string $endingSlash = ''; protected JavaScriptRenderer $javaScriptRenderer; protected ?ConsumableNonce $nonce = null; protected DocType $docType = DocType::html5; protected bool $applyNonceHint = false; public __construct( protected readonly FrontendInterface $assetsCache, protected readonly MarkerBasedTemplateService $templateService, protected readonly MetaTagManagerRegistry $metaTagRegistry, protected readonly AssetRenderer $assetRenderer, protected readonly ResourceCompressor $resourceCompressor, protected readonly RelativeCssPathFixer $relativeCssPathFixer, protected readonly LanguageServiceFactory $languageServiceFactory, protected readonly ResponseFactoryInterface $responseFactory, protected readonly StreamFactoryInterface $streamFactory, ) { $this->reset(); $this->setMetaTag('name', 'generator', 'TYPO3 CMS'); } public function updateState(array $state): void { foreach ($state as $var => $value) { switch ($var) { case 'assetsCache': case 'assetRenderer': case 'templateService': case 'resourceCompressor': case 'relativeCssPathFixer': case 'languageServiceFactory': case 'responseFactory': case 'streamFactory': break; case 'nonce': $this->setNonce(new ConsumableNonce($value)); break; case 'metaTagRegistry': $this->metaTagRegistry-> TYPO3\CMS\Core\Page\PageRenderer::updateState (   $value)
protected

array>

◆ wrapInlineScript()

TYPO3\CMS\Core\Page\PageRenderer::wrapInlineScript ( string  $content,
array  $attributes = [] 
)
protected

◆ wrapInlineStyle()

TYPO3\CMS\Core\Page\PageRenderer::wrapInlineStyle ( string  $content,
array  $attributes = [] 
)
protected

Definition at line 2233 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\renderCssInline().

Member Data Documentation

◆ $compressCss

bool TYPO3\CMS\Core\Page\PageRenderer::$compressCss = false
protected

Definition at line 58 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\getCompressCss().

◆ $compressJavascript

bool TYPO3\CMS\Core\Page\PageRenderer::$compressJavascript = false
protected

◆ $concatenateCss

bool TYPO3\CMS\Core\Page\PageRenderer::$concatenateCss = false
protected

Definition at line 66 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\getConcatenateCss().

◆ $concatenateJavascript

bool TYPO3\CMS\Core\Page\PageRenderer::$concatenateJavascript = false
protected

◆ $locale

Locale TYPO3\CMS\Core\Page\PageRenderer::$locale
protected

The locale, used for the <html> tag (depending on the DocType) and possible translation files.

Definition at line 75 of file PageRenderer.php.

Referenced by TYPO3\CMS\Core\Page\PageRenderer\getLanguage(), and TYPO3\CMS\Core\Page\PageRenderer\setLanguage().

◆ $moveJsFromHeaderToFooter

bool TYPO3\CMS\Core\Page\PageRenderer::$moveJsFromHeaderToFooter = false
protected

◆ __pad0__

case TYPO3\CMS\Core\Page\PageRenderer::__pad0__

Definition at line 232 of file PageRenderer.php.

◆ __pad1__

default TYPO3\CMS\Core\Page\PageRenderer::__pad1__

Definition at line 235 of file PageRenderer.php.

◆ break

TYPO3\CMS\Core\Page\PageRenderer::break

Definition at line 231 of file PageRenderer.php.

◆ PART_COMPLETE

const TYPO3\CMS\Core\Page\PageRenderer::PART_COMPLETE = 0
protected

Definition at line 48 of file PageRenderer.php.

◆ PART_FOOTER

const TYPO3\CMS\Core\Page\PageRenderer::PART_FOOTER = 2
protected

◆ PART_HEADER