public function AssetCache::setContent

Sets the content of the current asset.

Filters can use this method to change the content of the asset.

Parameters

string $content The asset content:

Overrides AssetInterface::setContent

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCache.php, line 80

Class

AssetCache
Caches an asset to avoid the cost of loading and dumping.

Namespace

Assetic\Asset

Code

public function setContent($content) {
  $this->asset
    ->setContent($content);
}