Not namespaced classes yii yii\base yii\behaviors yii\caching yii\captcha yii\console yii\console\controllers yii\console\widgets yii\data yii\db yii\db\conditions yii\db\cubrid yii\db\cubrid\conditions yii\db\mssql yii\db\mssql\conditions yii\db\mysql yii\db\oci yii\db\oci\conditions yii\db\pgsql yii\db\sqlite yii\db\sqlite\conditions yii\di yii\filters yii\filters\auth yii\grid yii\helpers yii\i18n yii\log yii\mail yii\mutex yii\rbac yii\rest yii\test yii\validators yii\web yii\widgets

Interface yii\web\AssetConverterInterface

Implemented byyii\web\AssetConverter
Available since version2.0
Source Code https://github.com/yiisoft/yii2/blob/master/framework/web/AssetConverterInterface.php

The AssetConverterInterface must be implemented by asset converter classes.

Public Methods

Hide inherited methods

MethodDescriptionDefined 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.