public function AssetCache::setTargetPath

Sets the URL for the current asset.

Parameters

string $targetPath A web URL where the asset will be dumped:

Overrides AssetInterface::setTargetPath

File

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

Class

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

Namespace

Assetic\Asset

Code

public function setTargetPath($targetPath) {
  $this->asset
    ->setTargetPath($targetPath);
}