yii / 2.0 / yii-web-assetconverterinterface.html

Interface yii\web\AssetConverterInterface

The AssetConverterInterface must be implemented by asset converter classes.

Public Methods

Method Description Defined By
convert() Converts a given asset file into a CSS or JS file. yii\web\AssetConverterInterface

Method Details

convert() public abstract method

Converts a given asset file into a CSS or JS file.

public abstract string convert ( $asset, $basePath )
$asset string

The asset file path, relative to $basePath

$basePath string

The directory the $asset is relative to.

return string

The converted asset file path, relative to $basePath.

© 2008–2017 by Yii Software LLC
Licensed under the three clause BSD license.
http://www.yiiframework.com/doc-2.0/yii-web-assetconverterinterface.html