An exception for terminatinating execution or to throw for unit testing.
An asset has a mutable URL and content and can be loaded and dumped.
load(FilterInterface $additionalFilter=null)
Loads the asset into memory and applies load filters.
getFilters()
Returns an array of filters currently applied.
getContent()
Returns the loaded content of the current asset.
setValues(array $values)
Sets the values for the asset's variables.
getValues()
Returns the current values for this asset.
setTargetPath($targetPath)
Sets the URL for the current asset.
dump(FilterInterface $additionalFilter=null)
Applies dump filters and returns the asset as a string.
ensureFilter(FilterInterface $filter)
Ensures the current asset includes the supplied filter.
getSourceRoot()
Returns an absolute path or URL to the source asset's root directory.
getSourceDirectory()
Returns the asset's source directory.
clearFilters()
Clears all filters from the current asset.
setContent($content)
Sets the content of the current asset.
getVars()
Returns an array of variable names for this asset.
getSourcePath()
Returns the relative path for the source asset.
getTargetPath()
Returns the URL for the current asset.
getLastModified()
Returns the time the current asset was last modified.
A filter manipulates an asset at load and dump.