HumHub Documentation (unofficial)

AssetConverterInterface

The AssetConverterInterface must be implemented by asset converter classes.

Tags
author

Qiang Xue qiang.xue@gmail.com

since
2.0

Table of Contents

Methods

convert()  : string
Converts a given asset file into a CSS or JS file.

Methods

convert()

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

public convert(string $asset, string $basePath) : string
Parameters
$asset : string

the asset file path, relative to $basePath

$basePath : string

the directory the $asset is relative to.

Return values
string

the converted asset file path, relative to $basePath.


        
On this page

Search results