Class ResponseAssetGroup

Methods summary

public static
# get( )
public
public
# init( )
public
# addHeaderAsset( $item )

Assets.

public
# addFooterAsset( $item )

Function responsible for adding footer items within the context of a view.

public
public
# getAssetsToOutput( )

Responsible for a number of things. 1. Gets the required assets and adds them to the output assets array (which also contains other assets we have specifically asked for.) 2. Returns the assets with the non-post-process-able assets FIRST, in the order in which they were added, with post-processable assets grouped after. We also make sure to maintain the proper position.

public
# markAssetAsIncluded( $assetType, $assetHandle = false )

Notes in the current request that a particular asset has already been provided.

public
# requireAsset( $assetType, $assetHandle = false )

Adds a required asset to this request. This asset will attempt to be output or included when a view is rendered.

public
# getRequiredAssets( )

Returns all required assets.

protected
public
# getRequiredAssetsToOutput( )

Returns only assets that are required but that aren't also in the providedAssetGroup.

Properties summary

protected static $group
# null
protected array $providedAssetGroupUnmatched
# array()
protected array $outputAssets
# array()