class AssetList (View source)

Properties

Asset>> $assets
AssetGroup[] $assetGroups
static private AssetList|null $loc

Methods

Asset>>
getRegisteredAssets()

No description

static AssetList
getInstance()

No description

register(string $assetType, string $assetHandle, string $filename, array<string,mixed> $args = [], bool $pkg = false)

No description

void
registerMultiple(array $assets)

No description

void
registerAsset(Asset $asset)

No description

void
registerGroup(string $assetGroupHandle, array $assetHandles, bool $customClass = false)

No description

void
registerGroupMultiple(array $asset_groups)

No description

Asset|null
getAsset(string $assetType, string $assetHandle)

No description

AssetGroup|null
getAssetGroup(string $assetGroupHandle)

No description

Details

Asset>> getRegisteredAssets()

No description

Return Value

Asset>>

map<assetType, map<handle, Asset>> Array of assets with type, version, and handle

AssetGroup[] getRegisteredAssetGroups()

No description

Return Value

AssetGroup[]

static AssetList getInstance()

No description

Return Value

AssetList

Asset register(string $assetType, string $assetHandle, string $filename, array<string,mixed> $args = [], bool $pkg = false)

No description

Parameters

string $assetType
string $assetHandle
string $filename
array<string,mixed> $args
bool $pkg

Return Value

Asset

void registerMultiple(array $assets)

No description

Parameters

array $assets

Return Value

void

void registerAsset(Asset $asset)

No description

Parameters

Asset $asset

Return Value

void

void registerGroup(string $assetGroupHandle, array $assetHandles, bool $customClass = false)

No description

Parameters

string $assetGroupHandle
array $assetHandles
bool $customClass

Return Value

void

void registerGroupMultiple(array $asset_groups)

No description

Parameters

array $asset_groups

Return Value

void

Asset|null getAsset(string $assetType, string $assetHandle)

No description

Parameters

string $assetType
string $assetHandle

Return Value

Asset|null

AssetGroup|null getAssetGroup(string $assetGroupHandle)

No description

Parameters

string $assetGroupHandle

Return Value

AssetGroup|null