‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Page\AssetRenderer Class Reference

Public Member Functions

 __construct (AssetCollector $assetCollector=null, EventDispatcherInterface $eventDispatcher=null)
 
 renderInlineJavaScript ($priority=false, ?ConsumableNonce $nonce=null)
 
 renderJavaScript ($priority=false, ?ConsumableNonce $nonce=null)
 
 renderInlineStyleSheets ($priority=false, ?ConsumableNonce $nonce=null)
 
 renderStyleSheets (bool $priority=false, string $endingSlash='', ?ConsumableNonce $nonce=null)
 

Protected Member Functions

 render (array $assets, string $template, ?ConsumableNonce $nonce=null)
 

Protected Attributes

AssetCollector $assetCollector
 
EventDispatcherInterface $eventDispatcher
 

Private Member Functions

 getAbsoluteWebPath (string $file)
 

Detailed Description

The AssetRenderer is used for the asset rendering and is not public API

Definition at line 30 of file AssetRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Page\AssetRenderer::__construct ( AssetCollector  $assetCollector = null,
EventDispatcherInterface  $eventDispatcher = null 
)

Member Function Documentation

◆ getAbsoluteWebPath()

◆ render()

◆ renderInlineJavaScript()

TYPO3\CMS\Core\Page\AssetRenderer::renderInlineJavaScript (   $priority = false,
?ConsumableNonce  $nonce = null 
)

Definition at line 46 of file AssetRenderer.php.

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

◆ renderInlineStyleSheets()

TYPO3\CMS\Core\Page\AssetRenderer::renderInlineStyleSheets (   $priority = false,
?ConsumableNonce  $nonce = null 
)

Definition at line 71 of file AssetRenderer.php.

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

◆ renderJavaScript()

TYPO3\CMS\Core\Page\AssetRenderer::renderJavaScript (   $priority = false,
?ConsumableNonce  $nonce = null 
)

◆ renderStyleSheets()

TYPO3\CMS\Core\Page\AssetRenderer::renderStyleSheets ( bool  $priority = false,
string  $endingSlash = '',
?ConsumableNonce  $nonce = null 
)

Member Data Documentation

◆ $assetCollector

AssetCollector TYPO3\CMS\Core\Page\AssetRenderer::$assetCollector
protected

Definition at line 34 of file AssetRenderer.php.

Referenced by TYPO3\CMS\Core\Page\AssetRenderer\__construct().

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Core\Page\AssetRenderer::$eventDispatcher
protected

Definition at line 38 of file AssetRenderer.php.

Referenced by TYPO3\CMS\Core\Page\AssetRenderer\__construct().