yii\web\AssetConverterInterface - Yii2 类参考手册

Interface yii\web\AssetConverterInterface

Implemented byyii\web\AssetConverter
Available since version2.0

The AssetConverterInterface must be implemented by asset converter classes.

Public Methods

隐藏继承的方法 Hide inherited 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.