AssetRenderer
Read onlyYes
The AssetRenderer is used for the asset rendering and is not public API
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $assetCollector : AssetCollector
- $eventDispatcher : EventDispatcherInterface
Methods
- __construct() : mixed
- renderInlineJavaScript() : string
- renderInlineStyleSheets() : string
- renderJavaScript() : string
- renderStyleSheets() : string
- render() : string
Properties
$assetCollector
protected
AssetCollector
$assetCollector
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
Methods
__construct()
public
__construct(AssetCollector $assetCollector, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $assetCollector : AssetCollector
- $eventDispatcher : EventDispatcherInterface
renderInlineJavaScript()
public
renderInlineJavaScript([mixed $priority = false ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
- $priority : mixed = false
- $nonce : ConsumableNonce|null = null
Return values
stringrenderInlineStyleSheets()
public
renderInlineStyleSheets([mixed $priority = false ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
- $priority : mixed = false
- $nonce : ConsumableNonce|null = null
Return values
stringrenderJavaScript()
public
renderJavaScript([mixed $priority = false ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
- $priority : mixed = false
- $nonce : ConsumableNonce|null = null
Return values
stringrenderStyleSheets()
public
renderStyleSheets([bool $priority = false ][, string $endingSlash = '' ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
- $priority : bool = false
- $endingSlash : string = ''
- $nonce : ConsumableNonce|null = null
Return values
stringrender()
protected
render(array<string|int, mixed> $assets, string $template[, ConsumableNonce|null $nonce = null ]) : string
Parameters
- $assets : array<string|int, mixed>
- $template : string
- $nonce : ConsumableNonce|null = null