Sets the URL for the current asset.
string $targetPath A web URL where the asset will be dumped:
Overrides AssetInterface::setTargetPath
public function setTargetPath($targetPath) {
if ($this->vars) {
foreach ($this->vars as $var) {
if (false === strpos($targetPath, $var)) {
throw new \RuntimeException(sprintf('The asset target path "%s" must contain the variable "{%s}".', $targetPath, $var));
}
}
}
$this->targetPath = $targetPath;
}