interface AssetOptimizerInterface (View source)

Interface defining a service that optimizes an asset.

Methods

string
optimize(array $asset)

Optimizes an asset.

string
clean(string $content)

Removes unwanted content from an asset.

Details

string optimize(array $asset)

Optimizes an asset.

Parameters

array $asset

An asset.

Return Value

string

The optimized asset's contents.

string clean(string $content)

Removes unwanted content from an asset.

Parameters

string $content

The content of an asset.

Return Value

string

The cleaned asset's contents.