AssetRepositoryInterface
in
Interface Asset.
Tags
Table of Contents
Methods
- findByName() : Asset|null
- findAssetByName.
- getDefaultAssetFile() : StorageFile|null
- loadAssetSettings() : array<string|int, string>
- loadAssetSettings.
- publishAssets() : void
- publishAssets.
- restoreDefaultAsset() : Asset
Methods
findByName()
findAssetByName.
public
findByName(string $name) : Asset|null
Parameters
- $name : string
Return values
Asset|nullgetDefaultAssetFile()
public
getDefaultAssetFile(int $id) : StorageFile|null
Parameters
- $id : int
Return values
StorageFile|nullloadAssetSettings()
loadAssetSettings.
public
loadAssetSettings() : array<string|int, string>
Return values
array<string|int, string>publishAssets()
publishAssets.
public
publishAssets(string $package) : void
Parameters
- $package : string
restoreDefaultAsset()
public
restoreDefaultAsset(int $id[, array<string, mixed> $attributes = [] ]) : Asset
Parameters
- $id : int
- $attributes : array<string, mixed> = []