AssetRenderer

Internal

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

Table of Contents

Properties

$assetCollector  : AssetCollector
$eventDispatcher  : EventDispatcherInterface

Methods

__construct()  : mixed
renderInlineJavaScript()  : string
renderInlineStyleSheets()  : string
renderJavaScript()  : string
renderStyleSheets()  : string
render()  : string

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

Methods

__construct()

public __construct([AssetCollector|null $assetCollector = null ][, EventDispatcherInterface|null $eventDispatcher = null ]) : mixed
Parameters
$assetCollector : AssetCollector|null = null
$eventDispatcher : EventDispatcherInterface|null = null

renderInlineJavaScript()

public renderInlineJavaScript([mixed $priority = false ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
$priority : mixed = false
$nonce : ConsumableNonce|null = null
Return values
string

renderInlineStyleSheets()

public renderInlineStyleSheets([mixed $priority = false ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
$priority : mixed = false
$nonce : ConsumableNonce|null = null
Return values
string

renderJavaScript()

public renderJavaScript([mixed $priority = false ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
$priority : mixed = false
$nonce : ConsumableNonce|null = null
Return values
string

renderStyleSheets()

public renderStyleSheets([bool $priority = false ][, string $endingSlash = '' ][, ConsumableNonce|null $nonce = null ]) : string
Parameters
$priority : bool = false
$endingSlash : string = ''
$nonce : ConsumableNonce|null = null
Return values
string

render()

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
Return values
string

        
On this page

Search results