public function AssetInterface::setTargetPath

Sets the URL for the current asset.

Parameters

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

4 methods override AssetInterface::setTargetPath()
AssetCache::setTargetPath in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCache.php
Sets the URL for the current asset.
AssetCollection::setTargetPath in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php
Sets the URL for the current asset.
AssetReference::setTargetPath in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Sets the URL for the current asset.
BaseAsset::setTargetPath in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php
Sets the URL for the current asset.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetInterface.php, line 127

Class

AssetInterface
An asset has a mutable URL and content and can be loaded and dumped.

Namespace

Assetic\Asset

Code

public function setTargetPath($targetPath);