AssetMapperInterface
interface AssetMapperInterface
Finds and returns assets in the pipeline.
Methods
MappedAsset|null
getAsset(string$logicalPath)
Given the logical path (e.g. path relative to a mapped directory), return the asset.
iterable
allAssets()
Returns all mapped assets.
MappedAsset|null
getAssetFromSourcePath(string$sourcePath)
Fetches the asset given its source path (i.e. filesystem path).
string|null
getPublicPath(string$logicalPath)
Returns the public path for this asset, if it can be found.