interface AssetCollectionOptimizerInterface (View source)

Interface defining a service that optimizes a collection of assets.

Methods

array
optimize(array $assets)

Optimizes a collection of assets.

string[]
getAll()

Returns all optimized asset collections assets.

deleteAll()

Deletes all optimized asset collections assets.

Details

array optimize(array $assets)

Optimizes a collection of assets.

Parameters

array $assets

An asset collection.

Return Value

array

An optimized asset collection.

string[] getAll()

Returns all optimized asset collections assets.

Return Value

string[]

URIs for all optimized asset collection assets.

deleteAll()

Deletes all optimized asset collections assets.