AssetRenderer
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
$assetCollector
protected
AssetCollector
$assetCollector
$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 ]) : string
Parameters
- $priority : mixed = false
Return values
stringrenderInlineStyleSheets()
public
renderInlineStyleSheets([mixed $priority = false ]) : string
Parameters
- $priority : mixed = false
Return values
stringrenderJavaScript()
public
renderJavaScript([mixed $priority = false ]) : string
Parameters
- $priority : mixed = false
Return values
stringrenderStyleSheets()
public
renderStyleSheets([bool $priority = false ][, string $endingSlash = '' ]) : string
Parameters
- $priority : bool = false
- $endingSlash : string = ''
Return values
stringrender()
protected
render(array<string|int, mixed> $assets, string $template) : string
Parameters
- $assets : array<string|int, mixed>
- $template : string